A Query is used to traverse over some data that may be of small or large quantity to find the needed information. A Subquery is a type of query which is written inside another query. A subquery becomes a part of a larger query. A subquery is also called INNER QUERY OR NESTED QUERY.