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 / akki julak
SELECT SUM(C),SUM(D),SUM(C)-SUM(D) 'difference'
FROM accounts;
| Is This Answer Correct ? | 3 Yes | 3 No |
Post New Answer View All Answers
What is the use of pl/sql table?
What is rank dense_rank and partition in sql?
Is stored procedure faster than query?
What is sql and also describe types of sql statements?
What is rownum in sql?
Explain unique key in sql.
Is sqlexception checked or unchecked?
How to return multiple rows from the stored procedure?
What is a delimiter in sas?
Why truncate is faster than delete?
What is form and report?
How do I order columns in sql?
Lookups are a key component in sql server integration services (ssis). Explain its purpose?
What is the difference between delete and truncate statement in sql?
why does the selected column have to be in the group by clause or part of an aggregate function? : Sql dba