Advertisement
Guest User

Untitled

a guest
Nov 13th, 2019
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. select count(*)total, sum(decode( to_char(hiredate, 'yyyy'),'1990', 1, 0 )),
  2. count(decode(extract(year from hiredate),'1981', 1))"1981",
  3. count(decode(extract(year from hiredate),'1982',empno))"1982",
  4. sum(case when to_char(hiredate,'yyyy')='1983' then 1 els 0 end)"1983"
  5. from emp
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement