Quantcast
Channel: SCN: Message List - SAP HANA Developer Center
Viewing all articles
Browse latest Browse all 9165

Re: MAX funtionality in HANA

$
0
0

Thanks for all the valuable inputs and guidance lars. I am trying the same in SQL and I wrote SQL as below-

 


(select "BILL_VBELN","BILL_FKDAT","BILL_KVGR1_1","BILL_FIL_PROFORMA_INV","BILL_KUNRG","BILL_KTGRD_1","BILL_VKORG_VBRK","BILL_INCO1","BILL_INCO2","BILL_PRCTR","BILL_POSNR","ROUTE","BILL_AUPOS","GET_DAYS","BILL_DATE_FY","BILL_DATE_FP","TO_DATE_EUDAT","TO_DATE_WADAT","DEL_DATE_CALC","TRAN_TIME","CA_BILL_REP_NETWR_COMP_CURR","CA_BILL_REP_WAVWR_COMP_CURR","NEW_DEL_DATE"

from "_SYS_BIC"."pk-sample.productmanagement/CV_REVENUE_RECOG_CUTOFF_PVP" t1

where  "BILL_VBELN" = '9043128697' AND  "BILL_AUPOS" = '001710'

            
INNER JOIN

 

select "BILL_VBELN","BILL_AUPOS",  MAX("NEW_DEL_DATE") AS "NEW_DEL_DATE"

 

from "_SYS_BIC"."pk-sample.productmanagement/CV_REVENUE_RECOG_CUTOFF_PVP"

where  BILL_VBELN = '9043128697' AND  BILL_AUPOS = '001710'
group by "BILL_VBELN" , "BILL_AUPOS" t2

 

on (t1."bill_vbeln" = t2."bill_vbeln" AND t1."bill_aupos" = t2."bill_aupos")


I am still getting the below error. I was trying to search for the template to get this working but I did nt find one with INNER JOIN on select query...

 

 

error:

 

sql syntax error: incorrect syntax near "INNER": line 6 col 2 (at pos 526)

 


Please guide...

 

Thanks


Viewing all articles
Browse latest Browse all 9165

Trending Articles



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