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