IanWaterman
Programmer
I have a view which currently lists up to 5 drivers on a policy, with 18 attributes in columns.
I am now using Crystal to produce a cross tab of this view with atributes now being rows and drivers as column header. I can do this in Crystal with an incredibly fiddly manual cross tab. In MS SQL server there is a function called PIVOT which will effectively do this for me making reporting easier.
I have searched this forum and the only solutions I can see involve Decode or Case. I can not use these as I do not know the number of drivers on each policy, it can vary from 1-5.
Is there an equivalent function to PIVOT in Oracle 10?
Thanks in advance
Ian
I am now using Crystal to produce a cross tab of this view with atributes now being rows and drivers as column header. I can do this in Crystal with an incredibly fiddly manual cross tab. In MS SQL server there is a function called PIVOT which will effectively do this for me making reporting easier.
I have searched this forum and the only solutions I can see involve Decode or Case. I can not use these as I do not know the number of drivers on each policy, it can vary from 1-5.
Is there an equivalent function to PIVOT in Oracle 10?
Thanks in advance
Ian