Expressions in the SELECT-list are called value expressions or scalar expressions. This is because each expression in the SELECT-list always returns only one value (though the value can be an array).
Scalar expressions can also be called SQL expressions or simply expressions. Each expression in SQL has its data type. It's determined by the data type(s) of the input. In many cases, it's possible to explicitly change the type of the data. Each item of the SELECT-list becomes a column in the output dataset, of a type that the corresponding expression has.
SQL expressions can contain the following:
- Column names (in most cases)
- Constants
- Operator invocations
- Parentheses to control operations/precedence
- Function calls
- Aggregate ...