PostgreSQL - Set Operations and Advanced Queries
Consider this query:
It returns duplicate rows. How can you fix it to return only unique rows?
SELECT id FROM table1 UNION ALL SELECT id FROM table2;
It returns duplicate rows. How can you fix it to return only unique rows?
