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
How can you get sql*loader to commit only at the end of the load file? : aql loader
Is pl sql useful?
What is update query?
What is the difference between distinct and unique in sql?
hi,i plan to put experience on PLSQL ,can anyone suggest me for any institutes in bangalore or how to prepare for interviews
How do I turn a list into a table?
What is sorting in sql?
How many types of privileges are available in sql?
What does t sql mean?
What is the size of partition table?
how can we destroy the session, how can we unset the variable of a session? : Sql dba
What does trigger mean in slang?
How many types of index are there?
What is a schema sql?
What is where clause in sql?