Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

Another way to calculate progressive step summing columns

$
0
0

Hi guy, I wish to ask you an advice. I got a table with column NAME, A, B , C, D, E....all the values are integer (except NAME of course). Now I have to do a chart with the different trend from NAME. It's simple because I'm going to do

Select NAME, A as Step1, A+B as Step 2, A+B+C as Step 3, A+B+C+D as Step 4 etc...

but I'm wondering ( The colum are name like TBL_100metersunderrain..and are more than 40) if there is another way more easy.

Thanks a lot 

 

Viewing all articles
Browse latest Browse all 23857

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>