I am pretty new to HANA and SQL and confronted with a problem that I am not sure how to solve.
In an SQL-procedure (Procedure A) there is an IN parameter 'inTabA' and an OUT parameter 'outTabA'.
inTabA and outTabA are identical and both contain
'Product' and
'Customer' and
'Discount'.
From Procedure A a call must be made to Procedure B.
Procedure B
has the parameters IN 'inTabB' and OUT 'outTabB' which are identical and both contain
'Customer' and
'Discount'.
Within Procedure B the Discount is determined based only on the Customer (is not my responsibility and I dont know how).
Hence I reckon I must call Procedure B from within Procedure A using some sort of loop-construct, but which is the "right" approach using SQL?