blob: d3d9b906f8b8b5d777c20dbd28eead4a6b89b6e6 [file] [log] [blame]
-- coalesce with columns from null producing side only
select
count(*),
coalesce(t3.a3, 100),
coalesce(t3.b3, 'zzzzz'),
coalesce(t3.c3, date '2015-01-10')
from
t1 left outer join t2 on t1.a1 = t2.a2
left outer join t3 on t1.c1 = t3.c3
group by
coalesce(t3.a3, 100),
coalesce(t3.b3, 'zzzzz'),
coalesce(t3.c3, date '2015-01-10')
order by
coalesce(t3.a3, 100),
coalesce(t3.b3, 'zzzzz'),
coalesce(t3.c3, date '2015-01-10')
;