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 the types of records?
What are schema-level triggers?
What is crud diagram?
What is dialect in sql?
What is schema in sql example?
How do you update f as m and m as f from the below table testtable?
How can I get the number of records affected by a stored procedure?
what is offset-fetch filter in tsql? : Transact sql
Can sql developer connect to db2?
What is sql table?
What is the limitation on the block size of pl/sql?
What is a loop in sql?
What is equi join in sql?
When can we use the where clause and the having clause?
How we can create a table in pl/sql block. Insert records into it? Is it possible by some procedure or function? Please give example?