Hello Experts,I have a resultset with a format as below:Row Number_1 Number_21000 123 7891001 789 1231002 234 6781003 234 5671004 678 2341005 567 234
Now what I need to do is to select only the unique combinations of columns "Number_1" and "Number_2". This means that when I select the "Row" 1000 above, I shouldn't select "Row" 1001. In short, the desired resultset should be like:Row Number_1 Number_2 REMARKS1000 123 789 Select1001 789 123 Don't select, as set exists1002 234 678 Select1003 234 567 Select1004 678 234 Don't select, as set exists1005 567 234 Don't select, as set exists
Can anyone please suggest how can I achieve this? The original resultset is pretty huge - greater than 100,000.Besides, I can't use any Stored Procedures, but any number of views and sub-views. Any help or suggestion is highly appreciated!Cheers.