I have a Product
table in my DB with following columns :
ProductId INT IDENTITY PRIMARY KEY
ProductCode VARCHAR(100) NOT NULL
ProductStamp VARCHAR(100) NOT NULL
I need both ProductCode and ProductStamp unique for example :
Allowed
Code Stamp
---- -----
A001 S001
A002 S002
Not allowed
Code Stamp
---- -----
A001 S001
A001 S002
How to achieve this? Thank you very much