T-SQL bugs, pitfalls, and best practices – pivoting and unpivoting
SQL Performance
SEPTEMBER 12, 2019
As an example with our task, suppose that you don't realize that the grouping element is determined implicitly, and you come up with the following query: SELECT shipperid , [ 2017 ] , [ 2018 ] , [ 2019 ] FROM Sales. So you're expecting to see only three rows in the result. 830 rows affected).
Let's personalize your content