I have to rotate a given table from an SQL Server but a normal pivot just doesn\'t work (as far as i tried). So has anybody an idea how to rotate the table into the desired
What you seek is dynamic cross tab. The short answer is that it cannot be done in T-SQL without some fugly dynamic SQL. The Hoyle answer is that you should pivot the data in a reporting tool or in the middle tier.