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 are all the different normalization?
What is a column in a table?
What is left join in postgresql?
how can we optimize or increase the speed of a mysql select query? : Sql dba
How do I filter in sql profiler?
how would you get the current date in mysql? : Sql dba
How do we accept inputs from user during runtime?
What does the base_object_type column shows in the user.triggers data dictionary view?
What is implicit cursor in pl sql?
Show how functions and procedures are called in a pl/sql block.
What is string data type in sql?
Why do we use sqlite?
what is a unique key ? : Sql dba
explain advantages of innodb over myisam. : Sql dba
Can you have more than one trigger on a table?