I’m having trouble finding exclusive group data set for the given query paramter.
My table is like this:
GROUP_ID DOMAIN_ID (unique) -------- --------- 111 2123 111 2124 111 2125 111 2126 112 2124 112 2125 113 2124 113 2125 113 2126 114 2124 114 2127 114 2128
Ok, now I need to find a GROUP_ID where DOMAIN_ID ONLY contains 2124 and 2125 i.e. it should not return 111 or 113 from the example above.
Limitation: Can’t use SP/Function. It should be one SQL query.
Thanks very much for your time in advance.
Thanks everyone for responding to my question.
Finally, I managed to write a query which gives me the result I wanted: