Quantcast
Channel: SCN : Discussion List - SAP HANA Developer Center
Viewing all articles
Browse latest Browse all 6412

CDS View: How to define JOIN in hdbdd file?

$
0
0

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

};


Viewing all articles
Browse latest Browse all 6412

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>