0 votes
in Technology by (54.6k points)
What is the difference between UNION and UNION ALL?

1 Answer

0 votes
by (54.6k points)

What is the difference between UNION and UNION ALL?

UNION: To select related information from two tables UNION command is used. It is similar to JOIN command.

UNION All: The UNION ALL command is equal to the UNION command, except that UNION ALL selects all values. It will not remove duplicate rows, instead it will retrieve all rows from all tables.

...