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 auto increment in sql?
What is a natural join sql?
Can you have more than one trigger on a table?
How can we store rows in PL/SQL using array?
What is sql lookup?
What is sql profiling in oracle?
What is the use of prepared statement?
What is a mutating table and a constraining table?
what is 'mysqladmin' in mysql? : Sql dba
How to run sql functions in pl/sql?
Can we use two order by clause in query?
What is a sql*loader control file?
explain what is mysql? : Sql dba
How do you take the union of two tables in sql?
Difference between truncate, delete and drop commands?