Union operator Assignment Help

Assignment Help: >> SET operators - Union operator

Union

The Union operator is used to display all the records selected through either query.  Let consider two tables X and Y with the similar structure. A UNION operation performed on these two tables yields records from both the tables without the values being repeated.

                                         1510_union operator.png

Example

SELECT * FROM x
UNION
SELECT * FROM y


The output of this query display like:

ITEMCODE     NAME
    1              Powders
    2                Soaps
    3              Creams
    4               Pencils
    4               Pens

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd