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
You can use an aggregate expression in a SELECT statement. That way you can call an aggregate function from multiple rows on a results set:
So in your view, you could do something like: