Register Login

You define a multiple-row subquery in the WHERE clause of an SQL query with a comparison operator"=" What happens when the main query is executed?

Updated May 18, 2018

Q. You define a multiple-row subquery in the WHERE clause of an SQL query with a comparison operator"=" What happens when the main query is executed?

A. the main query executes with the first value returned by the subquery

B. the main query executes with the last value returned by the subquery

C. the main query executes with all the values returned by the subquery

D. the main query fails because the multiple-row subquery cannot be used with the comparison operator.

E. You cannot define multiple-row subquery in the WHERE clause of a SQL query

Answer: D


Comments

  • 17 Dec 2012 9:33 am Guest
    You have created a stored procedure DELETE_TEMP_TABLE that uses dynamic SQL to remove a table in your schema. You have granted the EXECUTE privilege to user A on this procedure. When user A executes the DELETE_TEMP_TABLE procedure, under whose privileges are the operations performed by default?javascript:void(0);

×