1.

The UNION SQL clause can be used with _____________(a) SELECT clause only(b) DELETE and UPDATE clauses(c) UPDATE clause only(d) All of the mentionedI have been asked this question during an internship interview.My question is taken from Basic SQL in section Laying the Foundation of SQL Server

Answer»

The correct option is (a) SELECT CLAUSE only

The explanation is: The SQL UNION operator is used to combine the RESULT sets of 2 or more SELECT STATEMENTS. It removes duplicate ROWS between the various SELECT statements.



Discussion

No Comment Found

Related InterviewSolutions