is it posible to have SQL Server to have a unique key based on 2 columns?
I can have duplicates in both columns but not at the same time:
MfgID : Cu
CREATE TABLE table1( MfgID INTEGER NOT NULL, CustNum VARCHAR(255) NOT NULL, CONSTRAINT unique_1 UNIQUE (MfgID, CustNum) )
OR
ALTER TABLE table1 ADD CONSTRAINT unique_1 UNIQUE(fgID, CustNum)