Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Save to My Library
Look up keyword
Like this
1Activity
0 of .
Results for:
No results containing your search query
P. 1
Day3 Assignment

Day3 Assignment

Ratings: (0)|Views: 137 |Likes:
Published by kvsureshmysore

More info:

Published by: kvsureshmysore on Sep 29, 2008
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PPT, PDF, TXT or read online from Scribd
See more
See less

06/16/2009

pdf

text

original

 
Exercise :2.List deptno, dname along with total salary in each department.3.List details from emp, dept and salgrade table excluding clerks andemployees with grade 1. Order on their names.4.List employee with grade 3 or 45.List employees located in dallas.6.List ename, job, sal, grade, dname with annual renumeration greater than 36000 or any clerks.7.List employee and department details for department 30 and 40.8.List all employees who earn less than their managers. List their managers details also.9.Find the job that was filled in first half of 1981 and the same job thatwas filled during second half of 19819. Find all employees who joined the company before their manager 
 
Exercise :2.List employee working under KING3.List department with maximum average salary.4.Find employees who earn highest salary in each job type.5.Find employees who earn minimum salary for each job typeexcluding clerks. Sort on their salary.6.Find most recently hired employee in each department. Order byhiredate.7.List departments for which no employees exists.8.Analyze following query :SELECT ENAME,SAL FROM EMP EWHERE 3 > (SELECT COUNT(*) FROM EMPWHERE SAL > E.SAL)

You're Reading a Free Preview

Download
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->