?
Solved

Pivot Table Query

Posted on 2003-03-26
1
Medium Priority
?
1,016 Views
Last Modified: 2013-12-11
I have a table called WAS_IS
Contract_Number
Status_0302
Status_0301
Net_Investment_0302
Net_Investment_0301


The statuses are
0
1
2
3


How can I write a pivot query that will output the following
*************Count-Status_0302-0***Count-Status_0302-1***Count-Status_0302-2***Count-Status_0302-3
Status_0301-0
Status_0301-1
Status_0301-2
Status_0301-3


Thanks

Shariq
0
Comment
Question by:shariq
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 

Accepted Solution

by:
bstpierre earned 60 total points
ID: 8272797
You can use Function Table with Oracle 9i.  And it will be very easy.

bstpierre
0

Featured Post

Free Backup Tool for VMware and Hyper-V

Restore full virtual machine or individual guest files from 19 common file systems directly from the backup file. Schedule VM backups with PowerShell scripts. Set desired time, lean back and let the script to notify you via email upon completion.  

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Background In several of the companies I have worked for, I noticed that corporate reporting is off loaded from the production database and done mainly on a clone database which needs to be kept up to date daily by various means, be it a logical…
Checking the Alert Log in AWS RDS Oracle can be a pain through their user interface.  I made a script to download the Alert Log, look for errors, and email me the trace files.  In this article I'll describe what I did and share my script.
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
This video shows how to Export data from an Oracle database using the Datapump Export Utility.  The corresponding Datapump Import utility is also discussed and demonstrated.
Suggested Courses

764 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question