I have a Employee table with columns
ename,eid,salary,deptno. How to retrieve sum of salary for
each deptno?
Answer Posted / lova raju allumalla
instead of deptno the result will give u in department name
select sum(sal),dname from emp e,dept d where
e.deptno=d.deptno group by dname
/
| Is This Answer Correct ? | 0 Yes | 4 No |
Post New Answer View All Answers
explain primary keys and auto increment fields in mysql : sql dba
List the ways to get the count of records in a table?
How can we find duplicate records in a table?
What is error ora-01000: maximum open cursors exceeded
What is pivot query?
What is graph sql?
How do I get sql certification?
how can we take a backup of a mysql table and how can we restore it. ? : Sql dba
What is row_number () in sql?
Will truncate release space?
How do I find duplicates in sql?
how to fetch alternate records from a table? : Sql dba
Why is theta join required?
How do I view a sql trace file?
What is a record in pl/sql?