In your example, you can just do
select distinct * from table
But say that you had some kind of scenario in which you would like to distinguish some other results, you could do
select distinct column1, column2 from (select * from table) T
Please note that you must use your internal choices.
source
share