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
What is a lookup table in oracle?
What is the sql query to concatenate column values from multiple rows in oracle?
Her departmandaki isçilerden empno' su ikinci sirada olan isçilerin empno, deptno, hiredate, sira_no bigilerini döndüren sorguyu yaziniz?
Hi Masters, in Oracle Applications 11i, we hace 2 functions using the same form, i need to create 1 personalization, but that code must afect only one function.... how can i do that?
What is the purpose of tables, private synonyms and public synonyms in Oracle?
How will you identify oracle database software release?
What happens if the update subquery returns multiple rows?
How to use "in" parameter properly?
What is index-organized table in Oracle?
How to view the tablespaces in the current database?
What are the components of logical database structure in oracle database?
why dont we assign not null constraint as table level constraint.
How to connect ms access to oracle servers?
Can a parameter be passed to a cursor?
Is java required for oracle client?