Informatics Practices

What is the correct statement for describing the EXCEPT operation ?

  1. It excludes all the rows present in both the queries
  2. It includes the rows of the second query but excludes the results of the first query
  3. It includes the rows of the first query but excludes the results of the second query
  4. It includes all the rows of both queries but removes duplicates

SQL Joins & Grouping

3 Likes

Answer

It includes the rows of the first query but excludes the results of the second query

Reason — The EXCEPT (or MINUS) operator in SQL is used to retrieve unique rows from the first query, specifically those rows that exist in the first query but not in the second query.

Answered By

1 Like


Related Questions