Skip to content
Advertisement

How to get count of Rows automatically when a New Row is added and Rows are to shown as Columns in SQL Server

I am using this query:

and result is

But I have kept F1 TO F6 fixed I want that if a new column is added I will get count automatically without keeping it fixed

Advertisement

Answer

You can try below – using dynamic pivot

User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement