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

acname actype amount
ac1 credit 300
ac2 credit 4000
ac1 debit 4000
ac2 debit 455
ac1 credit 500
how to get sum of credit and sum of debit for each account

Answer Posted / amit kumar

select sum(amount) amt , acname, actype from table group by
acname , actype

Is This Answer Correct ?    6 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why do we use bulk collect in oracle?

1012


How to concatenate two text values in oracle?

1054


What are joins, explain all types of joins?

2221


How to sort the query output in oracle?

972


State the difference between a primary key and foreign key?

889


How does propagation differ between Advanced Replication and Snapshot Replication (read-only)?

2209


What is the implicit cursor in oracle?

1039


How many types of synonyms in Oracle?

1069


How to connect the oracle server as sysdba?

1014


ABOUT IDENTITY?

2009


> CREATE OR REPLACE FUNCTION FACTORIAL_1(factstr varchar2 ) 2 RETURN NUMBER AS 3 new_str VARCHAR2(4000) := factstr||'*' ; 4 fact number := 1 ; 5 BEGIN 6 7 WHILE new_str IS NOT NULL 8 LOOP 9 fact := fact * TO_NUMBER(SUBSTR(new_str,1,INSTR(new_str,'*')-1)); 10 new_str := substr( new_str,INSTR(new_str,'*')+1); 11 END LOOP; 12 13 RETURN fact; 14 15 END; explanation Above program?

1983


What is an oracle user role?

939


How can you tell how much space is left on a given file system and how much space each of the file systems subdirectories take-up?

2774


Differentiate between function and procedure in oracle.

1022


what is difference between sql plus and sql*plus? (not sql and sql plus).

3818