blob: daae71a70c693b4ab0a7f2f1f1cef7f5fbbab88f [file] [log] [blame]
select
concat(cast(extract(day from c_timestamp) as varchar(10)), '-', cast(extract(month from c_timestamp) as varchar(10)),'-',cast(extract(year from c_timestamp) as varchar(10))),
sum(c_integer) as sum1,
sum(c_smalldecimal) as sum2,
sum(c_bigdecimal) as sum3,
sum(c_float) as sum4,
sum(c_bigint - c_integer) as sum5,
avg(c_bigint) as avg1,
avg(c_integer) as avg2,
avg(c_smalldecimal) as avg3
from
alltypes
group by
concat(cast(extract(day from c_timestamp) as varchar(10)), '-', cast(extract(month from c_timestamp) as varchar(10)),'-',cast(extract(year from c_timestamp) as varchar(10)))
order by
concat(cast(extract(day from c_timestamp) as varchar(10)), '-', cast(extract(month from c_timestamp) as varchar(10)),'-',cast(extract(year from c_timestamp) as varchar(10)))
;