Posts by Joao Victor Santi • 11 points
1 post
-
1
votes1
answer53
viewsA: Turn rows into columns in SELECT Oracle
With PIVOT you solve this. Example : SELECT d.department_name, e.job_id, count(e.employee_id) FROM hr.employees e INNER JOIN hr.departments d ON d.department_id = e.department_id GROUP BY…