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
Is pl sql different from sql?
What is user defined functions?
Does truncate need commit?
What is the non-clustered index in sql?
Is a view faster than a stored procedure?
What is pl/sql table? Why is it used?
Which is faster truncate or drop?
Does pl/sql support create command?
What is the max nvarchar size?
What is difference between pl and sql?
what is union, minus and interact commands? : Sql dba
What is a unique key?
Can you inner join the same table?
How can triggers be used for the table auditing?
What are actual parameters and formal parameters?