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 / sanjay

select type,sum(amount)from account table group by type

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do I start tns listener?

989


20. Using a set operator, display the client number of all clients who have never placed an order.

2147


What are the differences between primary key and unique key?

949


How do we represent comments in oracle?

1003


definition of cluster and non-clustered index?

2962


How to display employee records who gets more salary than the average salary in the department?

999


What is an external table?

959


what is the use of system.effective.date variable in oracle?

1056


What happens if recursive calls get out of control?

1000


what are steps for interface? where is exchange rate defined in which table?

2059


What is the usage of synonyms?

1062


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.

2262


State and explain the different types of data models?

896


How to convert csv to table in oracle?

924


How to omit columns with default values in insert statement in oracle?

1001