We help IT Professionals succeed at work.
Get Started

create a oracle 10g query that dynamically creates columns based on a set of parameters

Last Modified: 2015-06-14
Guys, Not sure if this is possible but I am gonna ask away and see where I get.

I would like to be able to create a matrix of employees and there holidays in a  query that can easily show who is on holiday at any point in time the paramaters are the start_date and End_Date then what it would do is create the columns that are between the parameters what the table would show is:-

parameter 1 = Start date   01/06/2015
parameter2 = End date  30/06/2015

=====These are static===     ===================dynamically created============================
Employee, Emp_No,office,    01/06/2015,02/06/2015,03/06/2015..........28/06/2015, 29/06/2015, 30/06/2015

the first 3 columns are static and will always show.

Any ideas on how to do this as I undesrtand in oracle 11g I could use a PIVOT function but as this is Oracle 10g that's not an option.

Watch Question
Most Valuable Expert 2012
Distinguished Expert 2020
This problem has been solved!
Unlock 1 Answer and 15 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE