Quotations originate in official Oracle Database 19c documentation.
A – false; following query is executed successfully: SELECT empno FROM history WHERE beginyear <= 1995
INTERSECT
SELECT empno FROM employees WHERE job='TRAINER'
INTERSECT
SELECT trainer FROM offerings WHERE location <> 'SEATTLE';
B – true; “The INTERSECT operator with the keyword ALL returns the result of two or more SELECT statements in which rows appear in all result sets. Null values that are common across the component queries of INTERSECT ALL are returned at the end of the result set.”
C – false; “You can combine multiple queries using the set operators UNION, UNION ALL, INTERSECT, INTERSECT ALL, EXCEPT, EXCEPT ALL, MINUS, and MINUS ALL. All set operators have equal precedence.”
D – false; see answer B
SELECT 1, 2 FROM DUAL
UNION
SELECT 2, 3 FROM DUAL
INTERSECT
SELECT NULL, NULL FROM DUAL
INTERSECT
SELECT NULL, NULL FROM DUAL;
returns "no data found".
That is expected: the second two selects have no values in common with the corresponding columns in the first two, and the first two have nothing in common between them.
For any row to be returned, with NULL values or not, it should be present in all of the intersected tables.
upvoted 1 times
...
...
Log in to ExamTopics
Sign in:
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
elvegaa
Highly Voted 4 years, 2 months agonautil2
Most Recent 3 months, 2 weeks agoaihamza
5 months, 2 weeks agoymdaaa
9 months agoauwia
1 year, 6 months agoAberTroth
1 year, 8 months agoj_tw
1 year, 8 months agoFirstJM
1 year, 9 months agoAlbertopology
2 years, 4 months ago_Cobra_
2 years, 8 months agoryuah
3 years agoFan
3 years, 9 months agoora404
4 years, 4 months agoSimoneF
4 years, 1 month ago