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
how is exception handling handled in mysql? : Sql dba
How do I filter in sql profiler?
What is crud stand for?
What is a string data type in sql?
What is synonyms?
Does truncate remove indexes?
What is sql catalog?
How do I find duplicates in sql?
How to add, remove, modify users using sql?
What is union and union all keyword in sql and what are their differences?
how to extract a unit value from a date and time? : Sql dba
How do I view stored procedures?
What is the use of double ampersand (&&) in sql queries? Give an example
What is fmtonly in sql?
what is oracle database ? : Sql dba