SubqueriesSELECTselect_listFROMtableWHEREexpr operator( SELECTselect_ListFROMtable);•The subquery (inner query) executesonce before the main query.•The result of the subquery is used bythe main query (outerquery).A subquery is a SELECT statement that is embedded in a clause of anotherSELECT statement. You can build powerful statements out of simple ones byusing subqueries. They can be very useful when you need to select rows from atable with a condition that depends on the data in the table itself.You can place the subquery in a number of SQL clauses•WHERE clauss•HAVING clause•FROM clauseln the syntax;operatorincludes a comparison operatör such as>,=, or INNote:Comparison operutors fall iııto two classes: single-row operators( > , = ,>= ,< ,< > ,<= )and multiple-row operators ( IN , ANY , ALL ).3