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

i have one table with accounts and amounts as
colums.accounts with columns c and d. and amounts with
values 1000,2000,3000 for c and 4000,5000,8000 for d.i need
to find the sum of these accounts c and d individually
and find the differences between their sum using one select
statement.

Answer Posted / sandeep

I hope this will be helpful.

SELECT sum(Account) as "Account Sum", sum(Amount) as "Amount
Sum", sum(Amount)-sum(Account) as "Difference" FROM account

Is This Answer Correct ?    0 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

explain about mysql and its features. : Sql dba

1055


How many sql statements are used?

1075


How do you drop a trigger?

1037


Can a foreign key be null?

1144


Explain ddl statements in pl/sql?

1053


What is %type in sql?

1020


How delete all data from table in sql?

1079


What is difference between cursor and trigger?

1129


What does pl sql developer do?

982


What are the uses of sysdate and user keywords?

1155


What information is needed to connect sql*plus an oracle server?

1080


How to avoid using cursors?

1180


What is the use of double ampersand (&&) in sql queries? Give an example

1192


Explain the commit statement.

1215


What is composite data type in pl sql?

1170