I have a Employee table with columns
ename,eid,salary,deptno. How to retrieve sum of salary for
each deptno?
Answer Posted / kavithanedigunta
select deptno,sum(sal) from employee
group by deptno;
Is This Answer Correct ? | 72 Yes | 4 No |
Post New Answer View All Answers
Why do we use procedures in sql?
what is the syntax for using sql_variant_property? : Transact sql
Can a key be both primary and foreign?
What is the best partition size for windows 10?
What is data definition language?
What is the purpose of cursors in pl/sql?
How to create a menu in sqlplus or pl/sql?
How many postgresql users are there, worldwide?
Explain two easy sql optimizations.
Explain the types of joins in sql?
Can we commit in trigger?
What is the advantage of index in sql?
What is the use of nvl function?
Write an sql query to select all records from the table?
How to check if a column is nullable before setting to nullable?