pivot

Script to create dynamic PIVOT queries in SQL Server

  • Article

Pivoting is a common reporting requirement - data is stored in columns and you need to present it in rows. This was a nice feature that was added to SQL Server, but you don't always know all of the values you need to pivot on. This tip looks at how you can dynamically create the pivot command to handle these unknown values.

2012-11-09

5,308 reads

Blogs

SQL on-demand in Azure Synapse Analytics

By

The new SQL on-demand (to be renamed SQL serverless) offering within Azure Synapse Analytics...

My First Hand-built AWS CodePipeline

By

I’ve just completed my first, successful, AWS CodePipeline. I’m sorry to say it took...

Fixing Broken Pip

By

I’ve got Python 3.8 on my machine, and recently I got a note that...

Read the latest Blogs

Forums

Using Begin Tran for a select statement?

By Steve

Hello All I have an overly complex SELECT statement that I am married to...

Exclude square bracket and text from start or end of string

By PSB

Hi, I want to remove square brackets and text from either start of string...

MCSA Certifications - SQL2016

By dax.latchford

Dear all - Firstly apologies if my post isn't specifically for this particular forum...

Visit the forum

Ask SSC

SQL Server Q&A from the SQLServerCentral community

Get answers