i have a table like this. i want to output like this
c1 c2 c1 c2

1 10 1 10
2 20 2 30
3 30 3 60
4 40 4 100
5 5 5 105

c1 and c2 are columns in a table .i want output like this

c2 values are 10,10+20,10+20+30,10+20+30+40.10+20+30+40+5.

write a sql query.pls help this
i want urgent.

Answer Posted / vinay

Select c1,sum(c2) over (order by c1) as C3 from T1

Is This Answer Correct ?    13 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we use delete in merge statement?

734


Does access use sql?

750


Can ddl statements be used in pl/sql?

795


What found sql?

701


What is the purpose of the partition table?

754






How is a PL/SQL code compiled?

868


What is implicit cursor in pl sql?

739


Why is pl sql needed?

678


how mysql optimizes distinct? : Sql dba

728


How would you convert date into julian date format?

791


Is full outer join same as cross join?

692


what is oltp (online transaction processing)? : Sql dba

721


define join and explain different type of joins? : Sql dba

736


What is synonyms?

773


What is an inconsistent dependency?

761