I have a Employee table with columns
ename,eid,salary,deptno. How to retrieve sum of salary for
each deptno?
Answer Posted / kavithanedigunta
select deptno,sum(sal) from employee
group by deptno;
| Is This Answer Correct ? | 72 Yes | 4 No |
Post New Answer View All Answers
Is it possible to include an insert statement on the same table to which the trigger is assigned?
What is an alias command?
Can I create table without primary key?
What is a null value?
what are the 'mysql' command line options? : Sql dba
What are tables and fields in the database?
what is acid property in database? : Sql dba
which types of join is used in sql widely? : Sql dba
How does pl sql work?
What is an index? What are the types of indexes? How many clustered indexes can be created on a table?
Can we debug stored procedure?
Why do we use joins in sql?
Is left join faster than inner join?
what does the t-sql command ident_current does? : Transact sql
Can you select everything, but 1 or 2 fields, without writer's cramp?