Sample data:
ProductID PackingID
------- ---------
1 2
1 2
3 2
3 2
1 1
2 1
3 2
I have the above sample data. What i want is to select the unique (not distinct) rows of the combination productID
and packingID
. In the above example the only matching results are
ProductID PackingID
------- ---------
1 1
2 1
These rows are the only unique combinations of ProductID
and PackingID
together. I do not want Distinct results because it will give me one of all the other combinations.
You can try this one this is how i do in oracle ... to get the unique rows without using distinct.