Quote:
|
quote:I can have multiple rows with the same product ID, and multiple rows with the same serial number, but not multiple rows with the same product ID and serial number.
|
Did you read that from original post?
Unique index means it lets the user have every row as unique to the other. So it lets you have
1) Same productId but different serial number
2) Different ProductId with same serial number.
3) one NULL value for productID/Serial number. Stil this can be restricted to NOT NULL at the column level.
I don't see this setup violates the index or the original post saying serial numbers will be NULL...
Hope that explains.
Cheers!
_________________________
- Vijay G
Strive for Perfection