|
Field References |
Top Previous Next |
|
The Context References section describes how context references are used to build the tables on which queries are executed. These tables contain multiple fields that may be referred in different parts of the query, i.e. in the WHERE clause. Field references may comprise of two or three parts: 1. When a query has just one context reference in the FROM clause, fields in the table that was built from this reference may be referred with a two-part Field References: contextEntityName$dataTableFieldName In this Field Reference, contextEntityName is the name of the context variable or function that was used by the single Context Reference in the query. dataTableFieldName is the name of the field in the Table Format of the Data Table containing the value of that entity.
2. If a query has more then one Context Reference, each reference must have an alias so you'd be able to refer to the fields of the table that was built from it. The alias is assigned using the AS keyword: contextReference AS tableAlias
The generic form of a Field Reference that includes an alias is: tableAlias.contextEntityName$dataTableFieldName
Click here to see where Field References may appear in Query Language Syntax.
|