Solved

SQL PIVOT AND UNPIVOT Combination

Posted on 2011-03-18
2
687 Views
Last Modified: 2012-05-11
Please can you advise if there is some way of combining UNPIVOT and PIVOT.  I'm able to UNPIVOT a data set but then need to PIVOT the values for each unpivotted category across a series of months.

Thanks
0
Comment
Question by:Damozz
  • 2
2 Comments
 
LVL 9

Accepted Solution

by:
mayank_joshi earned 500 total points
ID: 35164501
0
 
LVL 9

Expert Comment

by:mayank_joshi
ID: 35164511
0

Featured Post

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

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

Suggested Solutions

Why is this different from all of the other step by step guides?  Because I make a living as a DBA and not as a writer and I lived through this experience. Defining the name: When I talk to people they say different names on this subject stuff l…
Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
Via a live example, show how to set up a backup for SQL Server using a Maintenance Plan and how to schedule the job into SQL Server Agent.
Using examples as well as descriptions, and references to Books Online, show the documentation available for datatypes, explain the available data types and show how data can be passed into and out of variables.

863 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

Need Help in Real-Time?

Connect with top rated Experts

28 Experts available now in Live!

Get 1:1 Help Now