Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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 / farrukh shaikh

select empid,
salary,
sum(salary) over(order by empid rows unbounded
preceding) composite_sal from (select 101 EmpID, 1000
Salary
from dual
union all
select 102, 2000
from dual
union all
select 103, 3000
from dual
union all
select 110, 5000 from dual)

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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

2451


How to experiment a data lock in oracle?

1016


What is a view and how is it different from a table?

990


How to open and close an explicit cursor in oracle?

1018


How to commit the current transaction in oracle?

1062


ABOUT IDENTITY?

2019


What is a oracle database?

1012


you are a universe designer and report developer in BO, what type of information you gather from client?Briefly explain plz

1909


Explain cascading triggers.

1032


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

1597


How do I reset a sequence in oracle?

1067


What is data file?

1065


You have 4 instances running on the same UNIX box. How can you determine which shared memory and semaphores are associated with which instance?

1954


A table t is there.If you perform insert ,update and delete then the trigger will fire.What is the minimum no of trigger required for a table.

5460


How to use "out" parameter properly?

1040