Once you get Oracle 11G there is a built-in PIVOT feature. Prior to that, you are restricted to using CASE (or DECODE) expressions. I have an article on how to automate doing that on my blog.
More Related Contents:
- Receive an unexpected symbol error in my PLSQL query [closed]
- PL SQL UPDATE STATEMENT
- Search All Fields In All Tables For A Specific Value (Oracle)
- Oracle SQL pivot query
- Is there a combination of “LIKE” and “IN” in SQL?
- How can I combine multiple rows into a comma-delimited list in Oracle? [duplicate]
- Is it possible to output a SELECT statement from a PL/SQL block?
- REGEX to select nth value from a list, allowing for nulls
- SQL to generate a list of numbers from 1 to 100
- How to use BOOLEAN type in SELECT statement
- SQL recursive query on self referencing table (Oracle)
- create table with sequence.nextval in oracle [duplicate]
- IF EXISTS condition not working with PLSQL
- PLS-00428: an INTO clause is expected in this SELECT statement
- Using pivot on multiple columns of an Oracle row
- SQL error “ORA-01722: invalid number”
- WHERE IN condition not accepting String value
- Is there any way to flush output from PL/SQL in Oracle?
- Sleep function in ORACLE
- Solution to “cannot perform a DML operation inside a query”?
- Array in IN() clause oracle PLSQL
- PLSQL Insert into with subquery and returning clause
- Oracle Dynamic Pivoting
- How to query a CLOB column in Oracle
- Oracle (Old?) Joins – A tool/script for conversion?
- In Oracle, is it possible to INSERT or UPDATE a record through a view?
- Creating or simulating two dimensional arrays in PL/SQL
- How to handle optional parameters in SQL query?
- How to check if a column exists before adding it to an existing table in PL/SQL?
- How to call Oracle MD5 hash function?