I have a Employee table with columns
ename,eid,salary,deptno. How to retrieve sum of salary for
each deptno?

Answer Posted / radheshyam mali

Select sum(salary) from Employee group by deptno

Is This Answer Correct ?    6 Yes 10 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is mariadb nosql?

581


What is the need of merge statement?

550


What is the difference between mdf and ndf files?

562


Why join is faster than subquery?

597


What are the basic sql commands?

548






What is scalar and vector?

528


How do you optimize a query?

536


Is progress software supports to ( pl/sql )?

526


How many functions are there in sql?

535


What is the difference between microsoft access and sql server?

531


How insert into statements in sql?

586


Why query optimization is needed?

515


Can a table contain multiple primary key’s?

624


What is data type in database?

543


How to find 3rd highest salary of an employee from the employee table in sql?

565