Quantcast
Channel: Teradata Forums - Database
Viewing all articles
Browse latest Browse all 14773

query on CSUM - forum topic by srinu_nistala

$
0
0

Hi Dieter,
 
Could you please help me to write a query to get the below desired result.Please find the below sample table data.
 

Date

Name

Meaure

Cumm. Measure by Name

Measure Total

Cumm. Measure By Date

1-Jul

A

10

10

17

17

1-Jul

B

5

5

1-Jul

C

2

2

1-Jul

D

0

0

2-Jul

A

4

14

7

24

2-Jul

B

0

5

2-Jul

C

3

5

2-Jul

D

0

0

3-Jul

A

15

29

23

47

3-Jul

B

0

5

3-Jul

C

0

5

3-Jul

D

8

 

expecting your response at the earliest.
 

Forums: 

Viewing all articles
Browse latest Browse all 14773

Trending Articles



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