on 2022 Sep 15 9:35 AM
Hi Experts,
I am so confused about the results below. Same data resource and just add a count function in selection lead to quite different result.After I confirm the raw data, the result which select "YM",count("ID"),sum(Sales) is right.
I will pretty appreciate anyone help!
P.S. Mydata is from Oracle,connecting with HANA through SDI,and build an ADSO in HANA.
I use the ADSO with the SQL scripts.
# Select Year Month and Sum of sales,group by Year Month
SELECT "YM",SUM("Sales")
FROM "Mydata"
GROUP BY "YM"<br>
# Select Year Month count the id (id is unique)and Sum of Sales, group by Year Month
SELECT "YM",COUNT("ID") ,SUM("Sales")
FROM "Mydata"
GROUP BY "YM"
Request clarification before answering.
User | Count |
---|---|
54 | |
10 | |
8 | |
6 | |
5 | |
5 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.