DBA > Job Interview Questions > DB2 ( IBM Database 2 ) Interview Questions

What is subquery ?

More DBA job interview questions and answers at http://dba.fyicenter.com/Interview-Questions/

(Continued from previous question...)

What is subquery ?

A subquery is a subquery that is written as part of another query's WHERE clause. For example:
SELECT col_name1,col_name2
FROM table_A
WHERE col_name3 < ( SELECT Avg(col_name)
FROM table_A
WHERE col_name4 = 'constant' )

(Continued on next question...)

Other Job Interview Questions