Select MemberNbr, EligYear,EligMonth, count(*) FROM [MemberMonth]
GROUP BY MemberNbr, EligYear,EligMonth HAVING COUNT(*) > 1
THIS WILL GIVE ME ZERO ROWS,,, That is GOOD which means NO DUPLICATES....
I need to add a constraint to the table
MEMBERMONTH to make sure no one can insert duplicate
records.
Can you suggest what constraint to add ?
The fields are
MemberNbr VARCHAR,
EligYear INT ,
EligMonth INT