Hi i have a table like the following
Time | Prod1 | Prod2 | Prod3 | .....
There are around 150 columns in total.. I have a few questions regarding to this table
1) how can I get a sum of all the rows except the Time row? I was thinking like
Select sum(something) from table group by Time;
However, I do not know the number of columns or the name of the columns. Therefore, I cant doSelect sum(Prod1), sum(Prod2) ...
is there any ways I can get a sum of all Prod1, Prod2, Prod3, Prod4..... that is group by Time?2) I know the table is huge, the table is given it to me like that, is there any ways that I can speed that up? from the first question, there could be over 1000 rows, with 150 columns thats gonna take a long time to calculate, is there any ways that I can speed that up?