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 does it mean to have quoted_identifier on? What are the implications of having it off? : Sql dba
which operator is used in query for pattern matching? : Sql dba
What if we write return in procedure?
How do I find duplicates in a single column in sql?
What are the qualities of 2nf?
How do you select unique values in sql?
What is prepared statement in sql?
How to get list of all tables from a database?
What is embedded sql what are its advantages?
what are the different type of sql's statements ? : Sql dba
what are date and time intervals? : Sql dba
What are sql indexes?
What are the benefits of triggers?
Explain what is a view?
How to combine two stored procedures in sql?