Community

Generic Pivot Function

(stewashton) Many folks ask how to do a “dynamic pivot”. It’s often best to use a preliminary query to generate the PIVOT clause. Here’s a generic function to do just that.




Tags: