There are 4 common places for enhancing your SQL Query with a Subquery
In a WHERE clause
As a Search Condition
In a HAVING clause
In a FROM clause
In a SELECT clause
As a Table Specification
As a Column Specification