what is union operator do in sql
Set Operators - UNION (Transact-SQL) Combines the results of two or more queries into a single result set that includes all the rows that belong to all queries in the union. The UNION operation is different from using joins that combine columns from two tables. The number and the order of the columns must be the same in all queries.