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
How do you select unique values in sql?
What are actual parameters and formal parameters?
What is a sql trace file?
How do I view a sql database?
Why do we use cursors?
What is the difference between having and a where in sql?
what is the use of anchoring object? what r the difference between anchoring object & enclosing object? can any one tell me all the details?
what are local and global variables and their differences? : Sql dba
how to use like conditions? : Sql dba
What is blind sql injection?
Can I join the same table twice?
how to calculate expressions with sql statements? : Sql dba
What is sql engine in oracle?
Which data type is a composite type?
how to convert dates to character strings? : Sql dba