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 sap sql?
how many columns can be used for creating index? : Sql dba
What is cursor explain with example?
what's the difference between a primary key and a unique key? : Sql dba
List the different type of joins?
How do I save the results of sql query in a file?
how to include comments in sql statements? : Sql dba
What is the difference between left and left outer join?
What is on delete set null?
What is scope of pl sql developer in future?
What is trigger in flip flop?
how to select first 5 records from a table? : Sql dba
How do I find duplicates in a single column in sql?
What is nvarchar in sql?
What are the commands used in sql?