I have a Employee table with columns
ename,eid,salary,deptno. How to retrieve sum of salary for
each deptno?
Answer Posted / vikneswaran
SELECT deptno,SUM(sal) FROM emp
GROUP BY deptno
| Is This Answer Correct ? | 12 Yes | 2 No |
Post New Answer View All Answers
what is timestamp in mysql? : Sql dba
What is a sql statement?
What is a database trigger?
How to return multiple rows from the stored procedure?
Can we insert in view in sql?
What are the subsets of sql?
what is the different between now() and current_date()? : Sql dba
What is the difference between a query and a report?
What is meant by cursor in sql?
Why do we create stored procedures & functions in pl/sql and how are they different?
What are sql ddl commands?
What are the indexing methods?
Explain the difference between sql and mysql.
What are the differences between in and exists clause?
What is trigger explain with example?