i have one table with accounts and amounts as
colums.accounts with columns c and d. and amounts with
values 1000,2000,3000 for c and 4000,5000,8000 for d.i need
to find the sum of these accounts c and d individually
and find the differences between their sum using one select
statement.
Answer Posted / apurba
SELECT SUM(C)-SUM(D) FROM TABLE_NAME;
| Is This Answer Correct ? | 8 Yes | 6 No |
Post New Answer View All Answers
What are predefined functions in sql?
What are the uses of sysdate and user keywords?
What is the difference between pl and sql?
What is triggering circuit?
What is set serveroutput on in pl sql?
How much does sql certification cost?
How do I turn a list into a table?
how to decrement dates by 1 in mysql? : Sql dba
How to add new employee details in an employee_details table with the following details
what is union, minus and interact commands? : Sql dba
How to Execute a Package in PL/SQL.?
Is sql workbench free?
Explain what is a field in a database and record in a database?
How to create a menu in sqlplus or pl/sql?
how can we destroy the cookie? : Sql dba