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

Issue with Temporal Join in HANA modelling

$
0
0

Hi All,

 

I have been trying to understand how temporal joins work in HANA and to do that I have created two simple tables below and inserted records into them:

 

create column table "MDANANI"."SERV_PURC" ("PURC_DATE" DATE, "SO_ID" INTEGER null, "SERVICE_ID" INTEGER null, "CUST_ID" INTEGER null, "AMOUNT" INTEGER null);

 

insert into "MDANANI"."SERV_PURC" values ("2012-01-01",101,1000,900,5000);

insert into "MDANANI"."SERV_PURC" values ("2012-01-21",102,2000,800,5500);

insert into "MDANANI"."SERV_PURC" values ("2012-02-17",103,2000,800,600);

insert into "MDANANI"."SERV_PURC" values ("2012-02-17",103,5000,1000,1200);

insert into "MDANANI"."SERV_PURC" values ("2012-02-17",103,5000,2000,1800);

 

 

create column table "MDANANI"."CONTRACT_DIM" ("CONTRACT_ID" INTEGER null,"FROM_DATE" DATE,"TO_DATE" DATE);

 

insert into "MDANANI"."CONTRACT_DIM" (1000,'2012-01-01','2012-01-31');

insert into "MDANANI"."CONTRACT_DIM" (2000,'2012-02-01','2012-03-31');

 

 

After creating them I have created an Attribute view on the Contract Dimension and then created an Analytic view with data foundation SERV_PURC table.

 

In the Logical View, when I try to join the PURC_DATE using a temporal join to Contract_dim and place the FROM_DATE and TO_DATE for it to be joined the system throws out and error. When I try to close the modeller and then try to re-open this, it won't even open, forcing me to delete it completely.

 

Has anyone tried to use a temporal join in HANA? If yes, would be kind enough to tell me how it works and what is it that I am doing incorrectly here? All help appreciated.

 

Thanks.

 

Manish


Viewing all articles
Browse latest Browse all 6412

Trending Articles



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