SyntaxFix
Write A Post
Hire A Developer
Questions
Happen to have a task on pivot. Below works for me as tested just now on 11g:
select * from ( select ID, COUNTRY_NAME, TOTAL_COUNT from ONE_TABLE ) pivot( SUM(TOTAL_COUNT) for COUNTRY_NAME in ( 'Canada', 'USA', 'Mexico' ) );