Maybe I missed something, but how can I define JOINs for a CDS view in a hdbdd file?
I have the following 2 tables and a view. The view claims that there is a syntax error on "left".
I found no examples on how to JOIN in the documentation (only for ABAP).
@Catalog.tableType : #COLUMN | ||
entity Project { | ||
key ID : Integer64 not null; | ||
Name : hana.VARCHAR(64) not null; | ||
Description : hana.VARCHAR(256); | ||
}; |
@Catalog.tableType : #COLUMN | |||
entity Scenario { | |||
key ID : Integer64 not null; | |||
Name : hana.VARCHAR(256) not null; | |||
Description : hana.VARCHAR(256); | |||
ProjectID : Integer64 not null; | |||
}; |
view MData as select from Project left join Scenario on Scenario.ProjectID = Project.ID {
Project.Name as Project,
Scenario.Name as Scenario
};