Here briefly summarize under intersected in Oracle, the syntax difference set and the union.
Intersection: INTERSECT (applies to two result sets)
SELECT ID, NAME FROM YANGGB1 INTERSECT SELECT ID, NAME FROM YANGGB2
Difference set: MINUS (applicable to two result sets)
SELECT ID, NAME FROM YANGGB1 MINUS SELECT ID, NAME FROM YANGGB2
And set: UNION or UNION ALL (applicable to two result sets)
- not including duplicates, default sort for the SELECT ID, NAME the FROM YANGGB1 the UNION the SELECT ID, NAME the FROM YANGGB2
- including duplicates, without default sort the SELECT ID, NAME the FROM YANGGB1 the UNION ALL the SELECT ID, NAME the FROM YANGGB2
"I want to do is bland, lukewarm, not sad not happy."