ORACLE SQL-CASE-END

select count(case when sal > 2000 then 1 else 0 end) as cnt1,
          count(case when sal >5000 then 1 else 0 end) as cnt2
          from emp
**********************************************