CDS provides extended support for treating relationships between entities. Such relationships are often reflected as foreign key relationships in the database, but they are not treated as first-class citizens in SQL , especially in DML. Therefore, using them to query data from several tables often requires writing non-trivial join conditions.
CDS treat relationships, called associations, as first-class citizens to simply reading relationships between entities, using them and defining CDS views for reuse, as follows: -
Exposed associations are helpful for the following reasons:
Open SQL supports simple path expressions to allow consuming associations in CDS views. Only simple path expressions without filter expressions are supported so far, but they are supported in all clauses of the SELECT statement, such as the field list, WHERE clause, ORDER BY clause and so on.
Association's names must be prefixed with a backslash. Deeper chains of associations and paths are also supported.
The filter expression is a conditional expression with the following constraints: