Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9091

HANA SQL View - Create dependency across Schemas

$
0
0

Hi,

 

My SQL view looks as below.

 

SQL View 1: This works fine

schema="RAJVANSH_SCHEMA";
query="SELECT T1.\"CONNID\",   T1.\"CITYFROM\",   T1.\"CITYTO\",   T2.\"CARRNAME\"       FROM \"B73_REP\".\"SPFLI\" AS T1        LEFT JOIN \"B73_REP\".\"SCARR\" AS T2        ON T1.\"CARRID\" = T2.\"CARRID\"";
depends_on_table=["<If i include a table from the Schema "RAJVANSH_SCHEMA"; everything is fine>"];

SQL View 2: This causes syntax error

 

schema="RAJVANSH_SCHEMA";
query="SELECT T1.\"CONNID\",   T1.\"CITYFROM\",   T1.\"CITYTO\",   T2.\"CARRNAME\"       FROM \"B73_REP\".\"SPFLI\" AS T1        LEFT JOIN \"B73_REP\".\"SCARR\" AS T2        ON T1.\"CARRID\" = T2.\"CARRID\"";
depends_on_table=["<If i include tables from Schema B73_REP; i get an error (depending object reference could not be parsed for table) "];

 

So is it possible to add a dependency on a table from different schema other than the one in which we are creating the SQL view in?

 

Thanks

Rajvansh


Viewing all articles
Browse latest Browse all 9091

Trending Articles



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