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
How to get a list of all user accounts in the database?
How to update values in a table in oracle?
What is proxy method?
What are the set operators union, union all, minus & intersect meant to do?
What are the various oracle database objects?
Is there any way to find out when one specific table/view/M-view is used last time. i.e. when one specific object is used in any SELECT statement.
Differentiate between translate and replace?
How to define a procedure inside another procedure?
What is oracle and what are its different editions?
How do you find current date and time in oracle?
What is an oracle and why it is used?
What are dml statements in oracle?
definition of cluster and non-clustered index?
What do you mean by cdb and pdb in oracle 12c?
Differentiate between post-database commit and post-form commit?