Associations are used to define relationships between entities.
In the example shown in figure Association from Books to Authors, the association between Books and Authors is defined through the author element in the Books entity. This element creates a link to the Authors entity, which establishes a relationship where you can navigate from a Books entity to the associated author to retrieve more details such as the author's name.

Behind the Scenes
The to-one association Books:author in the sample code is a so-called managed association, where foreign key fields and on conditions are automatically added behind the scenes.
Based on the primary key of the target, i.e. the Authors entity, CDS automatically adds the foreign key field author_ID to an SQL database upon activation (see figure Generated Foreign Key Field) and implicitly adds the corresponding join condition.

In addition to managed associations, we can also use unmanaged associations. Unmanaged associations explicitly specify arbitrary join conditions in their on clause, which refer to available foreign key fields.
Note
For the sake of conciseness and comprehensibility of your models, you should always prefer managed associations for to-one associations.
Next, we will examine an example of a to-many association.