Skip to content

This table defines commonly used terms in the VQL reference.

ConventionDescriptionExamples
ClauseA clause controls the source, filtering, and presentation of retrieved data.FROM documents ORDER BY id ASC
SELECT statementThe SELECT statement retrieves records from Vault. It must contain the SELECT and FROM clauses and may contain additional clauses.SELECT id FROM documents
SELECT id FROM documents WHERE name__v = 'USA'
ExpressionAn expression evaluates to a single value. A logical expression evaluates to a boolean value.created_date__v > '2014-12-20'
Logical operatorA logical operator is used in a WHERE or FIND clause to build a logical expression.AND IN CONTAINS
Comparison operatorA comparison operator is used in a WHERE or FIND clause to create a logical expression that compares two values.<= !=
FunctionA function returns a value. It either retrieves or modifies the specified field value.CASEINSENSITIVE(name__v)
Query targetA query target is a collection of Vault data that supports VQL queries. The object in a VQL query may be a Vault object or another query target such as documents or users.SELECT {field} FROM {query target}
SELECT id FROM product__v
SELECT id FROM users
Query target optionA query target option filters or modifies the queryable field, object, or set of results that follow it.LATESTVERSION name__v
Vault objectA Vault object is part of the application data model, such as Product, Country, or Study, and can be used as a query target.product__v