blob: 184d944854034901a98b4e814105549197395db9 [file] [log] [blame]
select c_boolean, (CASE when (c_boolean is null) then ROUND(SUM(d38/12)) else CAST(SUM(CASE when (d38 is null) then 0 else d38*1.2 end) as bigint) end) from alltypes group by c_boolean order by c_boolean;