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 is the maximum length of a table name, database name, and fieldname in mysql? : Sql dba
GLOBAL TEMPORARY TABLE over Views in advantages insolving mutating error?
What is trigger point?
How to run sql statements through the web interface?
What is output spooling in sql*plus?
What are the different types of tables in sql?
How many types of index are there?
what is uncommittable transactions? : Transact sql
How do I audit the sql sent to the server?
What is a parameter query?
Mention what plvcmt and plvrb does in pl/sql?
Explain ttitle and btitle.
Is microsoft sql free?
Which is faster count (*) or count 1?
What is function and procedure?