Informatics Practices
Assertion. The MINUS and INTERSECT operators are similar.
Reason. The MINUS operator returns only the rows from the first result set while INTERSECT returns the common rows of both the result sets.
- Both A and R are true and R is the correct explanation of A.
- Both A and R are true but R is not the correct explanation of A.
- A is true but R is false.
- A is false but R is true.
SQL Joins & Grouping
1 Like
Answer
A is false but R is true.
Explanation
The MINUS operator returns the rows that are only in the first result set but not in the second, while the INTERSECT operator returns all rows that are in both result sets. Hence, the MINUS and INTERSECT operators are different.
Answered By
3 Likes
Related Questions
Assertion. There can be joins where all records from one of tables appear irrespective of their matching rows in the other table.
Reason. In LEFT JOIN, all rows from the left table appear in the result along with matching rows from the right table and NULL for the non-matching rows ; and same for the RIGHT JOIN where all rows came from the right table appear, along with only matching rows from the left table.
- Both A and R are true and R is the correct explanation of A.
- Both A and R are true but R is not the correct explanation of A.
- A is true but R is false.
- A is false but R is true.
Assertion. The UNION clause combines the rows of the participating tables, removing the duplicate rows.
Reason. To retain the duplicate rows in a UNION query, UNION ALL is used.
- Both A and R are true and R is the correct explanation of A.
- Both A and R are true but R is not the correct explanation of A.
- A is true but R is false.
- A is false but R is true.
What is Cartesian product ? How is it related to join ?
What is a join ? How is natural join different from an equi-join ?