I have a table with 250 columns. I’m trying to Select all columns, but I want to use DISTINCT for two columns.
My begin it’s sometihing like that:
SELECT * FROM table_name WHERE EXISTS (SELECT DISTINCT table_name.column_name FROM table_name).
But doesn’t work.
Maybe somebody has any ideas?
Thanks in advance.
1 Answer