The SELECT statement is more flexible than has been shown so far. It can be used to combine data from one or more tables. This may involve combining rows or columns in novel ways.
You can combine the results of several partial queries to form the union of the results, or to determine their intersection or difference:
UNION ALL and UNION merge the results of partial queries to form their union.
INTERSECT is used to determine the elements contained in all partial query results.
EXCEPT is used to determine the elements contained in one partial result, but not the second partial result.
![Venn diagrams showing the relationships between the UNION [ALL], INTERSECT, and EXCEPT operators. Venn diagrams showing the relationships between the UNION [ALL], INTERSECT, and EXCEPT operators.](https://learning.sap.com/service/media/topic/d15bdae2-a81f-453f-909e-206780223af5/HA150_2512_en-US_media/HA150_2512_en-US_images/ZMigrated_mmcpLearningContent_04_Image_10b.png)