Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Unique combination for column values 2

Status
Not open for further replies.

aspx

Programmer
Jul 25, 2002
52
BG
Hi!
Is it possible to restrict combination of values of 2 different columns in a table to be unique (but values in each column not to be unique...)? And How?
Thanx for any help!
 
If I understand what you are talking about then you need to add a primary key to the table based on the two fields which you want to have as a unique combination for the table

Andy
 
Another possibility is to add one table UNIQUE constraint on those 2 fields, if you don't want the primairy key to be those 2 fields.
[bigglasses]


Kris Simonis
Topdesk Information Systems
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top