write sql query following source are
EmpID, Salary
101 1000
102 2000
103 3000
I want the output format like following
empid,sal,composite_sal
101 1000 1000
102 2000 3000
103 3000 6000

Answer Posted / mukesh

select empid,
salary,
sum(salary) over(order by empid rows unbounded
preceding) composite_sal from source

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Respected sir, Please send me technical questions related to oracle apps..

1381


HI, Please let me know the syllabus for Oracle OCA and OCP Certification

1956


What are the major difference between truncate and delete?

519


How to display row numbers with the records?

588


How do I start tns listener?

542






How to create tables for odbc connection testing?

497


What the is the diff between local index and global index. give some example.

1138


How to run create database statement?

579


What are the general rules on data consistency?

589


What is a read only transaction in oracle?

598


What is memory advisor in Oracle?

639


State any two functions of oracle?

636


What's dateware house and what's clustor with practicle example

1643


What is execute immediate in oracle?

549


What is a system tablespace?

602