A MySQL subquery is a query that is nested inside another query such as SELECT, INSERT, UPDATE or DELETE. In addition, a MySQL subquery can be nested inside another subquery. A MySQL subquery is also called an inner query, while the query that contains the subquery is called an outer query.