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
Can delete statement be rollbacked?
Can we use ddl statements in stored procedure sql server?
what tools available for managing mysql server? : Sql dba
what is not null constraint? : Sql dba
What is the current version of postgresql?
What is pl/sql table? Why it is used?
What is clause in sql?
how to increment dates by 1 in mysql? : Sql dba
What is a pl/sql block?
Explain the difference between 'between' & 'and' operators in sql
what is the difference between a local and a global temporary table? : Sql dba
What are the advantages of pl sql over sql?
What is sql rowcount?
What is pivot query?
Can you selectively load only those records that you need? : aql loader