I am unable to sum of data in cds views. Earlier in Hana calculation view the below query give me result as per my desire
Select t1.ID, t1.Name, t1.qty, t2.amount from T1 Inner join (select ID, Name, Sum (amount) from t2 group by ID, Name) as T2
But sum of amount is not correct in cds.. pls help