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 is the unique index?
In what condition is it good to disable a trigger?
How do you use a while loop in pl sql?
What is the cause of mutating table error and how can we solve it?
What is the difference between cross join and natural join?
What is the difference between instead of trigger and after trigger?
What is package in pl sql?
what is union, minus and interact commands? : Sql dba
What is pls_integer in pl sql?
How to return multiple rows from the stored procedure?
What is indexes?
Is sql considered coding?
Can a foreign key be null?
What is cte?
What are the two parts of design view?