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 / kamala k n
select type, sum(amount) over (partiton by sid) from tab
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
How do we get field details of a table?
How to write date and time interval literals in oracle?
Is there a function to split a string in plsql?
In Oracle Clinical 4.5.0, can the VIEW_TEMPLATE_ID column in DATA_EXTRACT_VIEWS table contain NULL value?
What are the benefits of ordbms?
How to connect ms access to oracle servers?
You have 4 instances running on the same UNIX box. How can you determine which shared memory and semaphores are associated with which instance?
What are the advantages of oracle 12c?
Can u please explain me the Discussion on Except ,using cast like type cast. Question in the context of difference between two tables
What is an oracle function?
Explain table?
What is a table index?
what is the need of indexing topic in oracle? where do we use in a Java project? any other option other than using this to get the same result where we use indexing ?
Explain the truncate in oracle?
How to establish administrator authentication to the server?