Show answerHide answer
Correct answer: D They must be compared with an ON condition.
Explanation
Explanation:In ABAP SQL, the ON condition is a syntactical requirement for all Inner Joins and Outer Joins (Left or Right). It defines the logical link between the data sources.
Why Choice D is correct:
The ON condition establishes the join criteria, determining which rows from the left-hand table match with rows from the right-hand table. Unlike the WHERE clause, which filters the final result set, the ON condition is part of the FROM clause and dictates how the tables are physically combined by the database engine.
Why the other options are incorrect:
A. Same position:
Database tables are unordered sets of columns. The physical position (e.g., column 1 vs. column 5) is irrelevant; only the data values and types matter for the join logic.
B. Alias name:
While using aliases (e.g., FROM mara AS m) is highly recommended for readability—especially when joining multiple tables—it is not strictly required by the syntax unless you are joining a table with itself (self-join) or have ambiguous column names.
C. Same name:
Fields do not need to have the same name to be joined. For example, you can join vbak-vbeln (Sales Document) with vbap-vbeln, but you could also join a field named userid in one table with a field named owner_id in another, provided their data types are compatible.
References
SAP Help Portal: SELECT - FROM JOIN - Documentation stating that every join expression must contain a join condition after ON.