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
Define tables and fields in a database
What is trigger in sql?
Is sql a oracle?
What are the advantages of stored procedure?
What are the types of dbms?
What is pl sql script?
Explain what is dbms?
how to increment dates by 1 in mysql? : Sql dba
what is 'mysqlimport'? : Sql dba
Explain ttitle and btitle.
What is not equal in sql?
Can a varchar be a primary key?
What is the current version of sql?
What is scalar function?
what are the performance and scalability characteristics of mysql? : Sql dba