Examine this statement:
What is returned upon execution?
Examine this statement:
What is returned upon execution?
Because both rows are the same, the UNION result gives distinct answers
Option-B is the correct choose
my mistake D is the correct answer
yes union all only gives duplicate so it will be 2 rows but union will give 1 row eliminating the duplicates
Union will get rid of duplicate so only 1 row remaining
It is not union all to return duplicated rows
D checked select 1 as id, 'john' as first_name from dual union select 1, 'john' as name from dual order by 1;