I'm afraid I don't have any suggestions. I use MS SQL rather than Oracle. I had to comment out your WHERE statement during my testing because "to_date" is not a supported function in SQL. Otherwise it worked. Maybe there is some different rules for pivot tables under Oracle.
↧