Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 Other Forums
 MS Access
 How to do a constraint or rule?

Author  Topic 

ezopus
Starting Member

5 Posts

Posted - 2007-07-24 : 11:04:01
I have a problem in sql 2000 table. A table with fields A and B for instance. How to ensure that during input or update when the values in field A are equal (e.g. same date) then the values in field B must be unique (not the same) while A can have any values (dates).
Thanks.

jsmith8858
Dr. Cross Join

7423 Posts

Posted - 2007-07-24 : 11:44:07
Just add a unique index on column B, or make B the primary key column.

- Jeff
http://weblogs.sqlteam.com/JeffS
Go to Top of Page

ezopus
Starting Member

5 Posts

Posted - 2007-07-24 : 12:02:20
thx but I have as a primary key another field already.
Go to Top of Page
   

- Advertisement -