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
How to get last row id?
How to create lov dynamically at runtime & attach to text field?
How to execute a stored program unit?
There are n numbers of flatfile of exactly same format are placed in a folder.Can we load these flatfile's data one by one to a single relational table by a single session??
How to export data with a field delimiter?
what is meant by magic query
Please explain me all types of Data models. Also give me the details if each model can have other name.for example:schematic data model is also known as conceptual data model and entity relation data model.
How to check the server version in oracle?
State the difference along with examples between Oracle 9i, Oracle 10g and Oracle 11i.
What are joins, explain all types of joins?
How to export your connection information to a file?
What is translate in oracle?
11. Display the client number and name and the client number and name of the person who referred that client.
Is there any way to find out when one specific table/view/M-view is used last time. i.e. when one specific object is used in any SELECT statement.
Oracle