c# - Dynamically Pivot a SQL data table with summary - Stack Overflow
How to Create Dynamic PIVOT Query in SQL Server | Codingvila
GitHub - Ritabrata-Goswami/Dynamic-pivoting-in-SQL-server: SQL Server PIVOT operation which rotates a table-valued expression. It turns the unique values in one column into multiple columns in the output and performs aggregations by SUM(), COUNT(),