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 to use fetch statement in a loop?
What is oracle and what are its different editions?
How to use existing values in update statements using oracle?
How to write an inner join with the where clause in oracle?
What is the usage of merge statement?
Explain the features of oracle?
What is an index associated with a constraint?
Where do we use decode and case statements?
What is partitioned table in Oracle?
How to resolve name conflicts between variables and columns?
What is the difference between PFILE and SPFILE in Oracle?
What are privileges and grants?
How view is different from a table?
How to drop an existing view in oracle?
How to write date and time literals in oracle?