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

In the oracle version 9.3.0.5.0, what does each number shows?

748


How to export data with a field delimiter?

581


What happens internally when the user types userID/password@string in SQL PLUS Thanks-Bhaskar

3823


What is raw datatype in oracle?

581


How to add a new column to an existing table with a default value?

542






How to establish administrator authentication to the server?

557


What is the max number of columns in an oracle table?

509


what is partitioning? Types of partitioning. explain? what is the new kind of partitioning type introduced in 9i?

1846


What are the oracle differences between nvl and coalesce

514


what is port in oracle? how is it related to database application.

1438


WHEN CURSOR MOVES FROM ONE FORM TO ANOTHER FORM, HOW MANY TRIGGER WILL BE FIRED AND WHAT ARE THEIR SEQUENCE?

1801


What is a database table in oracle?

572


How to experiment a data lock in oracle?

593


Explain an exception?

563


Why do you use stored procedures and state some of its disadvantages?

563