I have a Employee table with columns
ename,eid,salary,deptno. How to retrieve sum of salary for
each deptno?
Answer Posted / vikneswaran
SELECT deptno,SUM(sal) FROM emp
GROUP BY deptno
| Is This Answer Correct ? | 12 Yes | 2 No |
Post New Answer View All Answers
What is constant in pl sql?
What does partition by mean in sql?
what is commit? : Sql dba
what are the advantages and disadvantages of views in a database? : Sql dba
Explain the difference in execution of triggers and stored procedures?
Why do we need sharding?
Are null values same as that of zero or a blank space?
What are different sql data types?
What is java sql drivermanager?
Which is better varchar or nvarchar?
how can we know the number of days between two given dates using mysql? : Sql dba
what are the type of locks ? : Sql dba
How we can update the view?
What is synchronized subquery?
How do I start sql profiler?