‎2007 Jul 30 7:23 AM
‎2007 Jul 30 7:27 AM
Sub query is query inside a query
Eg
select country from dbtab1
where country not in (select country from dbtab2).
Reward if useful
‎2007 Jul 30 7:28 AM
Hi,
A subquery is a special SELECT statement containing a subquery within particular conditions of the WHERE or HAVING clauses. You cannot use them in the ONcondition of the FROM clause. Their syntax is:
( SELECT result
FROM source
[WHERE condition]
[GROUP BY fields]
[HAVING cond] )
In simple language,
Query inside Query.
Output of inner query will be given to the outer query.
Reward if useful!
‎2007 Jul 30 7:37 AM