PostgreSQL - Set Operations and Advanced Queries
Given two tables:
id | name
1 | 'Alice'
2 | 'Bob'
id | name
2 | 'Bob'
3 | 'Charlie'
What is the result of this query?
Table1:id | name
1 | 'Alice'
2 | 'Bob'
Table2:id | name
2 | 'Bob'
3 | 'Charlie'
What is the result of this query?
SELECT id, name FROM Table1 UNION SELECT id, name FROM Table2;