Quantcast
Channel: Microsoft SQL Server
Viewing all articles
Browse latest Browse all 4871

How to display query results left to right and not up and down

$
0
0

This is a continuation of this question.

(https://community.spiceworks.com/topic/2225209-sum-function-requires-1-argument )

How would I have the results display in a fashion like below. The reason for the 12 entries is that file is produced quarterly and has mon1emp, mon2emp, mon3emp in the place of each month (january, march, etc.). In total, there would be 36 items (each monthly sum) in each row next to the zip code. 

So that I can learn for future reference. Is this concept more of a group by or order by item?

       Year

zip     2016       2017

 89411           12 entries.             12 entries


Viewing all articles
Browse latest Browse all 4871

Trending Articles