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
Difference between varchar and varchar2 data types?
What are the original export and import utilities?
Explain coalesce function?
How to convert raw data type into text in oracle? Explain
What is instant client oracle?
What is set verify off in oracle?
How to see the table columns used in an index?
Typically, where is the conventional directory structure chosen for Oracle binaries to reside?
How to define an oracle sub procedure?
How to convert characters to dates in oracle?
Tab A A B ------ 1 A 2 B 3 C Tab B A B ----- 4 D 5 E 6 F Generate the value into B table from A table. Only table A has the value. Write the SQL query to get B table value.
What is a system tablespace?
Explain the use of control file?
How to convert csv to table in oracle?
How to change user password in oracle?