KnowledgeBoat Logo

Informatics Practices

What is the correct statement for describing the INTERSECT operation?

  1. It returns the common values from the results of any two different queries
  2. It returns the common rows of two different queries which have the same set of attributes in the select clause
  3. It returns the common rows of two different queries which have the same condition in the where clause
  4. None of these

SQL Joins & Grouping

2 Likes

Answer

It returns the common rows of two different queries which have the same set of attributes in the select clause

Reason — The INTERSECT operation in SQL returns common rows from different queries. These queries must have the same number of columns with the same data types in corresponding positions in the SELECT clause.

Answered By

3 Likes


Related Questions