cancel
Showing results for 
Search instead for 
Did you mean: 

SAP HANA Scripts : Will the same resource in different columns selection cause different results?

Kalos
Explorer
0 Kudos
297

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"

Accepted Solutions (0)

Answers (0)