SELECT column1, column2
FROM table_name
GROUP BY column1, column2;
SELECT column1, column2
FROM table_name
WHERE (column1, column2) IN (
SELECT DISTINCT column1, column2
FROM table_name
);
SELECT DISTINCT column1, column2
FROM (
SELECT column1, column2, ROW_NUMBER() OVER (PARTITION BY column1, column2 ORDER BY column1) AS rn
FROM table_name
) AS subquery
WHERE rn = 1;