Advertisement
yepp

Untitled

Mar 2nd, 2016
425
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. SELECT COUNT(*), CONCAT(fonok.employee_id, NVL2(fonok.manager_id, ' Alkalmazott', ' Tulajdonos')) FROM nikovits.employees fonok
  2. inner join nikovits.employees beoszt ON beoszt.manager_id = fonok.employee_id
  3. GROUP BY fonok.employee_id, NVL2(fonok.manager_id, ' Alkalmazott', ' Tulajdonos')
  4. ORDER BY COUNT(*) DESC;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement