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
What is PL/SQL ?
What is the difference between translate and replace?
What is a subquery?
How to declare a local variable?
How to export data to a csv file?
What are the different types of modules in oracle forms?
What is format trigger?
What are the differences between lov and list item?
How is it different from a normal table?
What is merge statement used for?
Explain the use of Merge statement in oracle 11g
Explain coalesce function?
What is oracle datasource?
does the query needs a hint to access a materialized view?
why should i declare foreign key constraint as self relation instead of binary relation in tables ?