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
What is rename in sql?
Can sql developer connect to db2?
What are the popular database management systems in the it industry?
What is a temporal table?
How do you delete duplicates in sql query using rowid?
how many values can the set function of mysql take? : Sql dba
what is the difference between ereg_replace() and eregi_replace()? : Sql dba
What is the syntax to add a record to a table?
What is procedure function?
Can we call dml statement in function?
What can you do with pl sql?
What is synonyms?
How do I clear the screen in sql plus?
What do you mean by dbms? What are its different types?
What does select count (*) mean in sql?