Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to pivot this 2 tables?
Message
De
19/09/2015 13:14:01
 
 
À
19/09/2015 13:05:39
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Versions des environnements
SQL Server:
SQL Server 2014
Application:
Web
Divers
Thread ID:
01624819
Message ID:
01624823
Vues:
54
>OK. One other question - are you trying to produce this query for a report in Reporting Services? Or will the output be used by something other >than SSRS?

>Reason I ask....SSRS has a very nice dynamic pivot capability (the SSRS matrix) where you don't need to specify the columns names.

>By contrast, the regular SQL PIVOT (or even CASE statements to build columns) requires that you "spell out" the column names. If the >names of columns is dynamic and could change over time, you'd have to use dynamic SQL. Certainly not horrible, but it does add a level of >complexity.

I don't have access to SSRS in that server, it must be run in standard procedure and return the resultant table.
John Harold Belalcázar Lozano
Associate Director Of Development
http://www.belvicto.co/
jhbelalc@gmail.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform