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
How do you use a while loop in pl sql?
What is rank dense_rank and partition in sql?
What port does sql server use?
what is data manipulation language? : Sql dba
What is over () in sql?
Does truncate require commit?
Can we use views in stored procedure?
what are the advantages of using stored procedures? : Sql dba
List out the acid properties and explain?
What is the difference between local variables and global variables?
What is a string data type in sql?
What is the difference between syntax error and runtime error?
Does sql support programming?
What are actual parameters and formal parameters?
Can you join a table to itself?