Skip to content

QueryColumn

A column of a Query: a table column, a related column, a calculation or an aggregate, defined with an expression. Without columns, a query returns all columns of the table.

Capabilities

Properties

  • QueryColumn.Expression: The value of the column: a column name, a relation path, a calculation or an aggregate, such as Customer.Name, Quantity * UnitPrice or Sum(Amount).
  • QueryColumn.Formula: Legacy shortcut that applies an aggregate function to the column named by Name. Prefer Expression: { Name : 'Amount', Formula : 'Sum' } is the same as { Name : 'Amount', Expression : 'Sum(Amount)' }.
  • QueryColumn.Name: The name of the column in the results. Specify it together with Expression; when Expression is not specified, the name is also used as the column expression.
  • QueryColumn.Properties: Additional column properties. XPath maps the column to an XML path relative to each row node in $Database.ExportToXml and $Database.ImportFromXml.
  • QueryColumn.XPath: An XPath expression to map data to the column.