I have a Employee table with columns
ename,eid,salary,deptno. How to retrieve sum of salary for
each deptno?
Answer Posted / sudarsan
SELECT
DeptNo AS Department,
Count(DeptNo) AS Dept_Count,
Sum(Salary) AS Salary_DeptWise FROM Employee
GROUP BY DeptNo
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Is it possible to sort a column using a column alias?
What do you mean by rowid?
What is trigger price?
What does select * from mean in sql?
What programs use sql?
Is sql the best database?
what is a database transaction? : Sql dba
How do I pipe the output of one isql to another?
How we can update the view?
What are pl/sql cursor exceptions?
what is a trigger in mysql? : Sql dba
How bulk collect improves performance?
How can you tell the difference between an index and a view?
Why do we use partitions in sql?
Is it possible to create the following trigger: before or after update trigger for each row?