Application Express

Welcome nobody( Logout )
Home
HomeLearn Application ExpressDemonstrationsPivot
Help

About

This report demonstrates the PIVOT SQL syntax introduced in Oracle 11g.

Demos

  • Calendar
  • Chart
  • Data Entry Form
  • Hierarchy
  • Interactive Report
  • Map
  • Master Detail
  • Pivot
  • Dashboard
  • Tree
  • XML
Select columns to search

  • Select Columns
  • Filter
  • Rows Per Page
    • 1
    • 5
    • 10
    • 15
    • 20
    • 25
    • 50
    • 100
    • 1000
    • All
  • Format
    • Sort
    • Control Break
    • Highlight
    • Compute
    • Aggregate
    • Chart
    • Group By
  • Flashback
  • Reset
  • Help
  • Download
Country
President
Manager
Analyst
Salesman
Clerk
Total
Australia014016
Austria002114
Brazil014005
Canada010056
China015107
Egypt012014
France013026
Germany0171211
India013206
Ireland014106
Japan014016
Kenya012014
Russia014016
South Africa012014
Spain022206
United Kingdom002002
United States1324414
1 - 17
Sort AscendingSort DescendingHide ColumnControl BreakColumn InformationCompute

SQL

SELECT * FROM (
SELECT WORK_COUNTRY as country, 
            JOB 
FROM WWV_DEMO_EMP )
PIVOT                                          
(COUNT(*) FOR JOB IN (
  'President' as President,
  'Manager' as Manager,
  'Analyst' as Analyst,
  'Salesman' as Salesman,
  'Clerk' as Clerk)
)                                                                             
Application Express 4.0.0.00.46
Workspace: INTERNAL User: nobody
Language: en | Copyright © 1999, 2010, Oracle. All rights reserved.