Hi guys,
I am new to HANA . I have got a requirement .Please help me with below issue.
I have a table "ABC"
ABC
COUNTRY REGION REGION ID USA WEST 100 USA NORTH 700 USA NORTH EAST 700Now there is another table DEF
REGION ID COUNTRY PROFIT REVENUE 600 USA 100 200 650 USA 50 150 200 UK50
150 100 APAC 100 250Now the requirement is
IF "REGION ID" FROM TABLE ABC is 700 then fetch values from table DEF which has REGION ID =600 OR 650 ,and COUNTRY FROM table ABC= COUNTRY from TABLE DEF,and sum (profit+revenue) from table DEF.
Are there any combinations other than 700-600,650.
Is this an interview question? I only ask because sum(profit+revenue) satisfies absolutely no functional requirement that I can think of! 🤪
Please demonstrate how you would want to see the output.
Michael
Add a comment