I have a Employee table with columns
ename,eid,salary,deptno. How to retrieve sum of salary for
each deptno?
Answer Posted / kavithanedigunta
select deptno,sum(sal) from employee
group by deptno;
| Is This Answer Correct ? | 72 Yes | 4 No |
Post New Answer View All Answers
How do you optimize a stored procedure query?
what does it mean to have quoted_identifier on? : Sql dba
tell us something about heap tables. : Sql dba
What is a temporal data type?
What is the difference between clustered and non-clustered indexes?
what are local and global variables and their differences? : Sql dba
Can we use the cursor's to create the collection in PL/SQL?
How to select unique records from a table?
what is the difference between ereg_replace() and eregi_replace()? : Sql dba
how to use myisamchk to check or repair myisam tables? : Sql dba
what are the properties and different types of sub-queries? : Sql dba
Why function is used in sql?
What is the mutating table and constraining table?
Explain the rollback statement?
What are the main features of cursor?