Hi all:
I have a table named Contact Links which stores links between contacts.
For example:
John Smith and Mary Smith are Married so the Contact Links table stores this link.
So, the table has the following fields which store the Primary Key from the Contacts Table.
ContactsId
Linked
What I am wanting to do is have an index that will not allow a duplicate link no matter which way the contacts are stored.
Entered as:
ContactId -- John Smith's Id
Linked -- Mary Smith's Id
Do not allow:
ContactID -- Mary Smith's Id
Linked -- John Smith's Id
Any suggestions would be greatly appreciated.
John