I have a Employee table with columns
ename,eid,salary,deptno. How to retrieve sum of salary for
each deptno?

Answer Posted / radheshyam mali

Select sum(salary) from Employee group by deptno

Is This Answer Correct ?    6 Yes 10 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Where do we use pl sql?

556


State some properties of relational databases?

586


What do you mean by field in sql?

538


What is procedure and function in sql?

536


What is the largest value that can be stored in a byte data field?

521






What is on delete set null?

570


What is t sql used for?

553


how many groups of data types? : Sql dba

569


What is string data type in sql?

537


What is sqlerrm?

553


What is sql select statement?

509


1. is it possible to use the cursor atttibutes (%found ,% rowcount , %isopen , %notfound ) to our user defined cursor names ....... cursor cursor_name is select * from scott.emp if you use... cursor_name%found , %rowcount ,%isopen,%notfound...will it work... -------------------------- 2.what is the difference between the varray and index by table .. -------- 3. type type_name is table of number(8,3) index by binary_integer; identifier_name type_name; first , last , prior , next ,trim are the methods we can use it for the above type...simillary is there any way to apply for cursors... with thanks and regards..sarao...

1918


How to select unique records from a table?

571


Why are indexes and views important to an organization?

529


Is it possible to Restore a Dropped Table using Rollback Command in Oracle SQL Plus ?

722