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
How to call a stored function in oracle?
can u plz provide me oca sql dumps please i need them
What is the difference between the Oracle ODBC driver and a Microsoft ODBC (Open Database Connectivity) Driver?
How to invoke the data pump import utility?
what is the use of triggers in Java program? I mean where do we use triggers in Java programming?
Can we convert a date to char in oracle and if so, what would be the syntax?
21. Using a set operator, display the client number of all clients who have ever placed an order and whose whose name does not contain the string Sm.
What is where clause in oracle?
How can windows applications connect to oracle servers?
How can you merge two tables in oracle?
How to rollback the current transaction in oracle?
How to turn on or off recycle bin for the instance?
What are the parameters that we can pass through a stored procedure?
Why do we need integrity constraints in a database?
Can we save images in a database and if yes, how?