Google News
logo
SQL Server - Interview Questions
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.
Advertisement