In Oracle, I have a table called "MyTable". There are columns “A” and “B” in this table. I want to find every unique combination of "A" and "B". How should I do it? I would prefer to do this in SQL rather than in PL / SQL.
Example:
Column A | Column B
Dog Cat
Cat Dog
Horse Cat
Dog Cat
The unique combination above should return 3 rows.
thank
source
share