In Oracle, the MINUS operator is used to return all rows in the first SELECT statement that are not returned by the second SELECT statement.
To compares results of two SELECT statement and returns distinct rows from the first SELECT statement that aren't present in the second SELECT statement, use the following syntax:
Parameters:
tablename1 & 2: The table name from which you want to achive MINUS operator.
.Note:
In the above example, the MINUS operator is uses to retrive all rows in the first SELECT statement that are not returned by the second SELECT statement.