SQL - Set Operations
Given the tables and query below, what will be the output?
Table X:
id | value
1 | 'A'
2 | 'B'
Table Y:
code | val
2 | 'B'
3 | 'C'
Query:SELECT id, value FROM X
UNION
SELECT code, val FROM Y;
Given the tables and query below, what will be the output?
Table X:
id | value
1 | 'A'
2 | 'B'
Table Y:
code | val
2 | 'B'
3 | 'C'
Query:SELECT id, value FROM X
UNION
SELECT code, val FROM Y;
15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions