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
39Activity
0 of .
Results for:
No results containing your search query
P. 1
SQL ASSIGNMENT(QUERIES)

SQL ASSIGNMENT(QUERIES)

Ratings:

4.0

(2)
|Views: 6,014 |Likes:
Published by bookworm_shashi
Queries in Sql
Queries in Sql

More info:

Published by: bookworm_shashi on Sep 16, 2008
Copyright:Attribution Non-commercial

Availability:

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

05/09/2014

pdf

text

original

SQL

Level \u20131
1)Write a query to list all the employees who are working as clerk
2) Write a query to list the employees who are working as clerks or

managers with

the minimum salary of 4000
3) Write a query to get the current date
4) Write a query o list the employees who are having experience more

than 4 years
5) Write a query to list the employees who hired in the last seven days
6) Write a query to list the employees whose salaries are within the

range of 5000 and 10000
7) Write a query to list the employees who have joined in the month of
March\u201999
8) Write a query to list the employees whose salaries are not within

the range of 10000 and 13000
9) Write a query who are getting 1000, 2000, 3000
10) Query to list all employees except who are joined on 11- Sep-2001,

31-Mar-2001 and 30-Jan-2001(It also compares time).
11) To list all the employees whose names are having \u2018O\u2019 as second
character
12) To list all the employees whose names are having \u2018R\u2019 as last
character
13) To list all the employees whose names are having just 5 characters
as length.
14) To list all the employees whose names are starting with \u2018R\u2019 and
ending with \u2018O\u2019

Level \u20132
1.Display those employees who's joining of month and grade is equal?
2.Display the half of the ename's in upper case and the remaining in

lower case?
3.Use the variable in a statement which finds all employees who can
earn $30,000 a year of more?
4.Find out how many managers are there without listing them?
5.Find out the average salary and average total remuneration for each
job type remember salesman earn comm?
6.Find out the job that was filled in the first half of 1983 and same

job that was filled during the same period on 1984?
7.Findout all the employees who joined the company before their manager?
8.List out all the employees by name and number along with their

managers name and number, also display KING who has no manager?
9.Find out the employees who earn the highest salary in each job type.
Sort in descending sal order?
10.Find out the most recently hired employees in each department. Order
by hiredate?
11.Display ename salary and deptno for each employee who earn a salary

greater than the average for their department order by deptno?
12.Display the department order by deptno?
13.Display the department where there are no employees?
14.Display deptno with highest annual remuneration bill as compensation?
15.Display average salary figure for the department?
16.Display employees who can earn more than lowest salary in department

30?
17.Find employees who can earn more than every employee in department
30?
18.Select department name,deptno and sum of salary?
19.Find all depertments which have more than three employees?

20.List lowest paid employees working for each manager? Exclude any groups where the minimum salary is less than 1000 sort the output by salary?

21.Delete those records from emp table whose deptno not available in
dept table?
22.Display name of those emp who are going to retire 31-dec-1999. If

the maximum job period is 30 years?
23.Display those emp whose salary is odd value?
24.Display those employees whose salary is contains atleast 3 digits?

Activity (39)

You've already reviewed this. Edit your review.
1 hundred reads
1 thousand reads
namokar_bb liked this
Gurpreet Kaur liked this
Gyan Rathore liked this
Debashis Das liked this
anu_dondekar4018 liked this
Kiran Kumar liked this

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)//-->