I need to define unique index key in my table using SQL Server.
For example:
ID Contact1 Contact2 RelationType
-------------------------------------------------------------------
1 1 2 sister // 1 is the 2nd sister
2 3 4 brother // 3 is the 4th brother
3 5 1 father // 5 is the 1st father
4 2 1 sister // bad entry !!!
Now, how can i prohibit inserting a wrong data like the 4th ID in the table above using an unique index key?