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...

in account table
account type amount
ac1 credit 300
ac2 debit 5000
ac3 credit 3000
ac1 debit 4000
ac3 debit 2000
ac2 credit 4000
write a query how to get sum of credit & sum of debit

Answer Posted / kamala k n

select type, sum(amount) over (partiton by sid) from tab

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

List out the types of joins.

1159


What is the difference between 10g OEM and 11g OEM?

965


can u send the sql dumps to sivakumarr1987@gmail.com plz help me

3053


how the Oracle Prepares the Execution Plan and how it chooses the Optimal one?

2344


What is bulk copy or bcp in oracle?

1124


How to create a single index for multiple columns?

1037


Explain a segment?

1089


normally database take to refresh time 2 hours. but client asked iwant to refresh with in 5 min that same database. do you have any option in BO and Oracle? explain me briefly...kavi

2206


How to define an anonymous procedure with variables?

1160


Explain what are the different type of segments?

966


What is the fastest query method to fetch data from the table?

1362


What are the uses of a database trigger?

994


What is the maximum number of triggers that can be applied to a single table?

1025


How to add a new column to an existing table in oracle?

1139


What are the different pseudo commands? Explain in general?

1080