Having difficulty with a query. I have a table called products with a large number of columns that looks like this:
X | Y | Z | ... (and on)
----+-----+-----+
4 | 9 | 4 |
5 | 2 | 6 |
2 | 5 | 9 |
Then I want to develop a query that will output the column names and their sums like this:
ProductName | Quantity
-------------+-----------
X | 11
Y | 16
Z | 19
...
Any ideas?
Thanks in advance
