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

query on cumulative sum..... - forum topic by vuyyuru05

$
0
0

Hi Dieter,
My sql requirement is as below.  Please find below sample data.
 
can you please help in writing SQL...
 

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

8

Regards,
Ramaiah

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>