SqlShare.com Logo
 
Skip Navigation Links
Home
Video List
Events
Classes
About Us
Login / Register
Subscribe RSS Feed 

Idera SQL Check

Unpivot Data Using the UNPIVOT Function in SQL Server

Unpivoting data is a very common technique for normalizing de-normalized data. This video shows you how to unpivot data using a the UNPIVOT function in sql server.

Duration:
2 mins 0 secs
Skill Level:
100
Rating:
4.23 out of 5
Publish Date:
November 06, 2008
Unpivot Data Using the UNPIVOT Function in SQL Server You must be logged in to view this video.  
Bookmark and Share
 
1=Poor, 3=Good, 5=Excellent

About the Author

Image of Plamen Ratchev
Plamen Ratchev has over two decades experience in the software architecture and development field. He has enjoyed building solutions for UNIX, DOS and Windows platforms, with main focus on SQL Server since version 4.21. Plamen is founder of Tangra, specializing in relational database applications analysis, implementation, and tuning. His particular interest is in design patterns, performance a...

References



Comments
Mark Horninger on 12/1/2008
Pretty good topic, little hard to understand the speaker.

Hard to get through the accent

Julie on 12/1/2008
good stuff!

John on 2/24/2009
This will save valuable time during data migration.

Something new today.

Babita Das on 1/6/2010
really a good article.

Phil Parkin on 3/16/2011
Good example. A bit difficult to understand the presenter at times.

lakshmi on 3/16/2011
good..

Victor on 3/16/2011
Well done. Took me a bit to understand, but I got it :)

Robert McEuen on 3/16/2011
I think it would be better if the presenter had his queries already written and then merely explained them with highlighting tools.

A2D6709F0F on 3/16/2011
Very easy-to-follow example, clearly explained. Thanks!

Carlos B. Vasquez on 3/16/2011
Sweet!!! Well-explained usage of the UNPIVOT function.

MarkAllen on 3/16/2011
another awesome video, made it seem so simple

elsa m Platania on 3/16/2011
THANK YOU!!!

Maurice Ivory on 3/16/2011
Very useful information

John H Davis on 3/16/2011
Too simple of an example, though it does show the power of the univot command.

Don Weigend on 3/16/2011
Excellent demo using UNPIVOT

Derek on 3/16/2011
This is neat. I could have used this last week. The video was very clear--easy to read and understand.

Pradeep on 3/16/2011
Very nice explaination of unpivot. Thank You.

Peter on 3/16/2011
Pretty basic , it would be nice to add some kind of advanced trick or technique for those more skilled in sql

ravi on 3/16/2011
good one

Carla Wilson on 3/17/2011
Would have liked to have seen how to apply the case statement to output a numeric value instead of the column name in the Unpivot.

Bobby on 3/17/2011
Very interesting. I would just add that for someone new to SQL it's always nice to see a BEFORE and AFTER shot of the data so it's CLEAR what it is you've accomplished. Thanks Bro!

sachin on 3/17/2011
AWESOME!

Steven Lindquist on 5/16/2011
It would be nice to know if the sales_quarter could be dynamic. For examle, you had customer names instead of quarters, the number of values could change. I was not familar with the unpivot function. I will do some research on the dynamic unpivot. Thank you very much.

Team FAB on 5/16/2011
I didn't know where it was going until right at the end. Maybe it would have been useful to run the UNPIVOT statement right at the beginning to show what was going to be done, and then explain the statement after that. Anyway - very interesting, thanks.

DaveClark on 5/16/2011
@Steven Lindquist - You can have a dynamic number of columns, however it requires writing dynamic sql. You can build the list of comma separated columns into a variable from a select statement. Then incorporate that variable with the dynamic sql.

Michael on 5/16/2011
Unpivot awesomeness!

Vamsi on 5/16/2011
Good

erick on 5/16/2011
nice!

Sara Karasik on 5/16/2011
The content was excellent. However, I do find foreign accented English to be more difficult to follow.

kevin on 5/16/2011
good video

Andy Abel on 5/16/2011
Hard to understand the accent

Derek on 6/9/2011
Neat, I know I've had use for this a few times and didn't know it existed.

Mai Grapes on 6/24/2011
video cut off after just a few seconds

Harvey Minot on 8/12/2011
Excellent! Thank you

Maurice Ivory on 10/26/2011
Good stuff, I like normalizing tips!!

Les Weaving on 11/8/2011
Although I think the content was good I had extreme difficulty in understanding the words at crucial points in the presentation.

A Alagu Ganesh on 3/30/2012
Good



Must Be Logged In
 

How Do I Become a Video Author? |  Newsletter History

Copyright © Fourdeuce, Inc., 2005-2009. All Rights Reserved | Privacy Policy | Terms & Conditions