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
Why do we go for stored procedures?
What does count (*) mean in sql?
what is an alias command? : Sql dba
What is the order of sql select?
Why is normalization important?
Explain what is a database?
How to assign sql query results to pl sql variables?
Is json a nosql?
Which is faster joins or subqueries?
What are aggregate functions in sql?
what are the limitations of identity column? : Transact sql
how can I make a script that can be bi-language (supports english, german)? : Sql dba
how many tables will create when we create table, what are they? : Sql dba
write an sql query to get third maximum salary of an employee from a table named employee_table. : Sql dba
What is procedure explain with program?