sql - How do I enforce a two-column constraint?

Posted by hamlin11 on Stack Overflow See other posts from Stack Overflow or by hamlin11
Published on 2010-05-14T16:44:19Z Indexed on 2010/05/14 16:54 UTC
Read the original article Hit count: 246

I have a CustomerID column and an EffectiveDate column in a table.

I need the combination of these two to be unique.

However, I already have a primary key on an auto-numbered integer column.

What is a good way to accomplish my goal?

Thanks

© Stack Overflow or respective owner

Related posts about sql

Related posts about sql-server-2005