The correct answer is A - UNION.
union all and intersect all will display the duplicates. Question is to find all rows that are in common ( Means distinct).
The correct answer is C- Intersect.
INTERSECT is used to match result sets between two tables. If the data is the same in both results sets, it passes through. When INTERSECT ALL is specified, the result consists of all rows that are in both results sets. If INTERSECT is specified without the ALL option, the duplicates will be removed from the results.
Reference : https://www.datavail.com/blog/using-intersect-and-except-in-db2/
upvoted 2 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.
pieknyjoe
4 years, 5 months agodbadmin
4 years, 10 months agozarko
4 years, 1 month agodb2tester
5 years, 1 month ago