ingenioussql.com
Dynamic T-SQL Pivot
In a prior blog post (Standard T-SQL PIVOT) I showed how we can use a PIVOT query to take distinct values in a column and make those values new columns. However, data changes and new columns may b…