Hi,
I am trying to prevent one integer (minrate) exceeding the value of (maxrate) in sql server 2000.
The table is to store details relating to the cost of accommodation. When adding new rows I want to make sure the min rate cannot exceed the max rate.
I have searched the net but have not turned up any positive results.
I have tried a check constraint and trigger but cannot find anything that works.
I am fairly new to sql server and am using 2000 as this is part of a project which limits me to using 2000.
Many thanks
I am trying to prevent one integer (minrate) exceeding the value of (maxrate) in sql server 2000.
The table is to store details relating to the cost of accommodation. When adding new rows I want to make sure the min rate cannot exceed the max rate.
I have searched the net but have not turned up any positive results.
I have tried a check constraint and trigger but cannot find anything that works.
I am fairly new to sql server and am using 2000 as this is part of a project which limits me to using 2000.
Many thanks
Comment