I have a database table of addresses, each address is set up so that it is split into its component parts, such as:
Address ID(PK, AI)
Customer ID
Street Number
Street Name
City
etc.
I am wondering what the best way would be to add data so as not to have a duplicate combination of these values?
MY customers may have multiple addresses, but I want each combination to be unique.
Is there some way to throw an error when an entire row equals another row?
Thanks