When will union and union all behave the same?
2456
12-Mar-2018
Updated on 23-Sep-2020
Anonymous User
12-Mar-2018Union will return record only once even if it occurs several times. Union all will give a record as many times as it occurs. So union and union all will behave the same when each record is distinct in all the participating tables.
eg