Question : I need to accumulate the values in query

hi expert,
my data in database is like this (img1), i want the out put in a query like the (img2)
Please help...
Attachments:
 
The original data in the database
The original data in the database
 
 
The required output in a query
The required output in a query
 

Answer : I need to accumulate the values in query

can you give the query which it is currently getting that output. then can help to modify it.

we need to use analytical function to get that output you wanted. We can use LEAD() / LAG() to that output.

Thanks
Random Solutions  
 
programming4us programming4us