{{tag>Index Glossary Sub-Query Query Business_Object}} ===== Sub-query ===== Sub-query is a part of a [[glossary:query|query]] that performs search on [[glossary:business_object|business objects]] other than those of the main query. For example, in a query that searches for customers who placed more than one order within last month, the part checking the orders would be a sub-query since the main query searches for customers. Note that not all databases support sub-queries.