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
how to delete an existing column in a table? : Sql dba
How many clustered indexes can be created on a table?
What are the packages in pl sql?
Is sql a programming?
What does the acronym acid stand for in database management?
What is the use of & in pl sql?
How are functions and procedures called in PL/SQL?
write an sql query to get third maximum salary of an employee from a table named employee_table. : Sql dba
What is an exception in PL/SQL? What are the two types of exceptions?
Can we want to pass a parameter payroll_id to this external pl/sql function, how do we do it?
How many types of sql are there?
What is the sql*loader? : aql loader
Is sqlite good enough for production?
Why is partition used in sql?
What is the difference between execution of triggers and stored procedures?