Stairway to Advanced T-SQL

Stairway to Advanced T-SQL Level 6: Creating Rows Of Data Using The UNPIVOT Operator

The UNPIVOT operator does just the opposite of the PIVOT operator, which we looked at in the previous level. By using the PIVOT operator we can take multiple rows of data and create as single row as output. The UNPIVOT operator will take values from a single row and will create multiple rows. Microsoft introduced the UNPIVOT operator when they rolled out SQL Server 2005. In this level I will be showing you different examples of how to use the UNPIVOT operator.

Blogs

PlanTrace Now Supports PostgreSQL

By

PlanTrace Now Supports PostgreSQL The same plan analysis you know from...

A New Word: the Kinder Surprise

By

the kinder surprise – . the point in your early adolescence when you realize...

Crash-Consistent Snapshot Cloning - Hyper-V Edition

By

If you’ve been following my T-SQL Snapshot Backup series, most of what I’ve covered...

Read the latest Blogs

Forums

BCA KCP Mal Taman Anggrek TLP/WA 08216977701

By Sattamatka1

Jl. Letjen S. Parman No.Kav. 21 Lahan Bawah. C 07, Slipi, Kec. Grogol petamburan,...

Cara mengatasi saldo tertahan/pending di KlikBCA

By drsushmadikhit

Cara mengatasi saldo tertahan/pending di KlikBCA cukup menghubungi nomor resmi KlikBCA di 08213111109 dan...

BCA KCP Ruko Swadaya TLP/WA 08216977701

By Sattamatka1

Jl. Swadaya Raya No.39 Ruko Swadaya City Square Blok 1.11-23, Kec. Grogol petamburan, Daerah...

Visit the forum

Question of the Day

The Distance Metric

In the new VECTOR_DISTANCE() function in SQL Server 2025, the first parameter is the distance_metric. What is this?

See possible answers