SQL tutorial | Interview questions | Oracle
Would you like to react to this message? Create an account in a few clicks or log in to continue.

What Is a Subquery?

Go down

What Is a Subquery? Empty What Is a Subquery?

Post by Micheal Sun Jan 17, 2010 3:16 am

A subquery is a SELECT statement used as part of the selection criteria of the main SELECT
statement. The subquery specified in the WHERE clause will be evaluated repeated on each row
of the selection base table. The output of the subquery will be used in the final evaluation of the
criteria. Usually, subqueries are used in the following boolean operations:
"expression IN (subquery)"
"expression NOT IN (subquery)"
"EXISTS (subquery)"
"NOT EXISTS (subquery)"

Micheal
Admin

Posts : 243
Join date : 2010-01-10

http://sql-tutorial.co.cc

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum