I have a Employee table with columns
ename,eid,salary,deptno. How to retrieve sum of salary for
each deptno?
Answer Posted / madhusudan darshannkar
SELECT COUNT(EID) AS EMPLOYEE,DEPTNON,SUM(SALARY) FROM
EMPLOYEE GROUP BY DEPTNO
| Is This Answer Correct ? | 4 Yes | 12 No |
Post New Answer View All Answers
what are null values? : Sql dba
What is the most important ddl statements in sql are?
What is user in sql?
What is normalization? How many normalization forms are there?
What are the benefits of stored procedures?
How to rename a column in the output of sql query?
Which language is used in sql?
What do you mean by stored procedures? How do we use it?
Why is there a need for sqlcode and sqlerrm variables?
What are sql constraints?
What is nosql vs sql?
define sql delete statement ? : Sql dba
Why query optimization is needed?
What are the advantages of indexing?
Explain exception handling in pl/sql?