COMMON_TABLE
Description
COMMON_TABLE
allows to refer to the common table of multiple expressions in the data model without using its exact table name. This operator might be helpful when the common table of multiple expressions is unknown. The given input expressions have to be columns.
This function returns a reference to a common table. The result of this function can then be used at all places where table names are accepted.
Syntax
COMMON_TABLE ( expression [, expression, ...] )
The common table that serves as a common table for all the given input expressions is referenced
Only expressions that reference a column are supported as input
Examples
[1] The common table of a single data model column is the owning table of this column. | ||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||
|
[2] The common table of two directly connected tables is the table on the N-side. Read more about common tables here. | ||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||
|
[3] The common table of a generated column is the generated table owning this column. | |||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||
|