Entering content frame

joined_table Locate the document in its SAP Library structure

JOINED TABLE (joined table) can be specified as part of a FROM TABLE specification (from table spec).

Syntax

<joined_table> ::=
<from_table_spec> CROSS JOIN <from_table_spec>
| <from_table_spec> [INNER] JOIN <from_table_spec> <join_spec>
| <from_table_spec> [<LEFT|RIGHT|FULL> [OUTER]] JOIN <from_table_spec> <join_spec>

<join_spec> ::= ON <search_condition>

from_table_spec, search_condition, column_name

Explanation

If a FROM TABLE specification comprises a JOINED TABLE, the result is generated as follows:

Let FT1 be the set of all rows in the table specified by the first from table specification. Let FT2 be the set of all rows in the table specified by the second from table specification.

Let T be the set of result rows consisting of all possible combinations of FT1 and FT2. Each result row satisfies the join specification for this set.

The rules specified for the WHERE condition apply to the JOIN specification (join_spec) ON <search_condition> with the restriction that no links using the Boolean operator OR are permitted.

Leaving content frame