This version of the manual is outdated. For the latest version, follow this link: http://www.jooq.org/doc/3.0/manual.
| The jOOQ User Manual. Multiple Pages : Advanced topics : The Oracle 11g PIVOT clause | previous : next |
# PIVOT (aggregate FOR column IN (columns))
If you are closely coupling your application to an Oracle database, you can take advantage of some Oracle-specific features, such as the PIVOT clause, used for statistical analyses. The formal syntax definition is as follows:
-- SELECT ..
FROM table PIVOT (aggregateFunction [, aggregateFunction] FOR column IN (expression [, expression]))
-- WHERE ..
The PIVOT clause is available from the org.jooq.Table type, as pivoting is done directly on a table. Currently, only Oracle's PIVOT clause is supported. Support for SQL Server's PIVOT clause will be added later. Also, jOOQ may simulate PIVOT for other dialects in the future.
| The jOOQ User Manual. Multiple Pages : Advanced topics : The Oracle 11g PIVOT clause | previous : next |
