Thursday, September 17, 2015

Oracle Convert row to columns

select *
from
  (select fk_department
   from employee)
   pivot
    (count(fk_department)
      for fk_department in ('INT', 'WEL', 'CEN', 'POL'));



Yasser

No comments:

Post a Comment