Pivot in Oracle 10g
804215Oct 11 2011 — edited Oct 11 2011Hi All,
I am using SQL*Plus: Release 10.2.0.1.0 - Production version of oracle 10g.
I am trying to use pivot function but it is giving error
select * from
(select physicianid,fname from t_physician)
pivot
(count(physicianid) for fname in ('Thomas','Jason'))
/
(count(physicianid) for fname in ('Thomas','Jason'))
*
ERROR at line 4:
ORA-00933: SQL command not properly ended
This is the query i am using.
Regards,