CrystalizeCanada
Instructor
Hi there,
I have created a Pivot query in Oracle 11g SQL developer and it runs great.
I now want to save as a view (I have rights to do this) and when I get an error I check for erros with the same SQL (I'm just copying and pasting).
I'm just copying it and pasting it so I'm puzzled. Am I not allowed to create a view with this syntax?
WITH pivot_data AS (
SELECT ITEM_CODE, URULE_CODE, RULEIT_TEXT
FROM Lego.RULEIT
WHERE URULE_CODE LIKE 'IInk%'
)
SELECT * FROM pivot_data
PIVOT (
MAX(RULEIT_TEXT)
FOR URULE_CODE
IN (
'IInk10Com',
'IInk10CoPl'
))
any help would be greatly appreciated.
Thanks
Gord
Gordon BOCP
Crystalize