Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8526

Data Display Query

$
0
0

Hello, I have a question. I have data in my DSO like this:

 

Customer      Calmonth      ZCalmonth      Quantity
101               201411            201406            10
101               201410            201406            20
101               201407            201406            30
101               201406            201406            8
101               201404            201406            9
102               201411            201409            10
102               201410            201409            12
102               201409            201409            20
102               201407            201409            6
102               201406            201409            9
102               201404            201409            10

 

My requirement is to add up the quantity based off of the value in ZCALMONTH, so for example: for customer 101, i want to show a record from beginning till 2014006 period which should be like this:


Customer Quantity
101             17 which is a made of 8+9
102             45 which is a made of 20+6+9+10

 

 

How can i do this at the query level please? Back-end can also be an option if this is not do able at query level.
Thanks.


Viewing all articles
Browse latest Browse all 8526

Trending Articles



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