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


Please Help Members By Posting Answers For Below Questions

Explain constraints in sql?

574


How do I make sql search faster?

558


how to concatenate two character strings? : Sql dba

554


Why do we use procedures in sql?

550


How many types of primary keys are there?

529






What are the different types of sql commands?

599


Can one improve the performance of sql*loader? : aql loader

587


What is the least restrictive isolation level? : Transact sql

565


Difference between table function and pipelined function?

587


How do we accept inputs from user during runtime?

548


What is t-sql? : Transact sql

542


What is cross join sql?

500


Explain table and field in sql?

583


What are schema-level triggers?

582


Is sql port 1433 encrypted?

576