Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 3523

SQL problem in HANA Studio CalculationView

$
0
0

Dear all,

 

I'm working on a simple SQL-statement in HANA studio for merging two tables. I'm using a SQL-script Calculation View and want to combine these tables. The structure of the two tables is the following:

 

Table A: ChangeDocument

ChangeDateDocumentNumberObjectValue
2013-11-141123057768OR006640028785
2014-12-111123057769OR006640026776

...

......

 

Table B: ChangeLog

DocumentNumberObjectValueOldValueNewValue
1123057768OR0066400287852014-01-022014-01-24
1123057769OR0066400267762014-02-112014-02-01
............

 

I wrote the following SQL-Statement:

 

var_out =  SELECT A.ChangeDate AS"ChangeDate", A.DocumentNo AS"DocumentNo", B.DocumentNo,

           B.ObjectValue AS"ObjectValue", B.OldValue AS"OldValue", B.NewValue AS"NewValue"

           FROM ChangeDocument AS A LEFT JOIN ChangeLog AS B

           ON A.DocumentNo=B.DocumentNo

           GROUP BY DocumentNo;


Unfortunately, I receive the following error, when I'm trying the excute the statement:

 

Deploy Calculation View: SQL: transaction rolled back by an internal error: invalid column name: A.DOCUMENTNO


I really appreciate your help.

 

Regards

Dirk


Viewing all articles
Browse latest Browse all 3523

Trending Articles



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