📞 0339-0387701 (WhatsApp) Contact

« Back to Database & Data Handling (NCCIA)

What does UNION do when combining two SELECT results?

A. Combines the results and keeps all duplicates
B. Joins tables on a key
C. Sorts one result only
D. Combines the results and removes duplicate rows ✅

Correct Answer: D. Combines the results and removes duplicate rows

Explanation

UNION merges the rows from two compatible SELECT queries and eliminates duplicates from the combined result.