Connor and Chris will both be at AI World from October 12 to October 17 , the premier Oracle conference of 2025. If you're in Vegas, please come say Hi or pop into our sessions
Thanks for the question, Felix.
Asked: August 12, 2016 - 11:56 am UTC
Last updated: August 14, 2016 - 5:46 am UTC
Version: 11.1
Viewed 1000+ times
create table t ( branch varchar2(10), dept varchar2(10) ); insert into t values ('Sydney','Sales'); insert into t values ('Sydney','Research'); insert into t values ('Sydney','Finance'); insert into t values ('London','Sales'); insert into t values ('New York','Sales'); insert into t values ('New York','IT'); select * from t pivot (min('Y') for dept in ( 'Sales' as sales, 'Research' as research, 'Finance' as finance, 'IT' as IT) ); BRANCH SALES RESEARCH FINANCE IT Sydney Y Y Y London Y New York Y Y
Felix Yan, August 13, 2016 - 12:43 am UTC
Share and learn SQL and PL/SQL; free access to the latest version of Oracle Database!
Classes, workouts and quizzes on Oracle Database technologies. Expertise through exercise!