Advertisement
Guest User

Untitled

a guest
Mar 29th, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. select s.grade, e.ename, d.dname, 0.15*e.sal as "prima"
  2.  
  3. from dept d, emp e, salgrade s
  4.  
  5. where (e.comm is NULL or e.comm = 0)
  6.  
  7. and e.sal between s.losal and s.hisal
  8.  
  9. and d.deptno = e.deptno
  10.  
  11. order by 1 desc,4 asc;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement