CASE turned to COALESCE