Let's say there is a table that contains data rows as below.
As you see above, Applicant 79 has a twin 80 and Twin 80 has Applicant 79 as a twin.
Since ID 11 and 12 are really the same information, I am wishing to select a unique twin data as following.
How can I achieve this in SQL Server?
Thank you very much in advance.
You can simply do:
select * from t where ApplicantId < TwinId