Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9680

Re: return type for aggregate functions AVG

$
0
0

Hi Wenjun,

 

please try this:

create column table t1(c1 decimal(3,0)); -- not int type

insert into t1 values(2);

insert into t1 values(3);

insert into t1 values(5);

 

select avg(c1) from t1; -- return 3.333333 -- return 3 on Rev82

 

I have discussed with Expression colleagues, they thought this general HANA issue was introduced after SP08.

 

 

Thank you

BR

Mingyin


Viewing all articles
Browse latest Browse all 9680

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>