0% found this document useful (0 votes)
164 views17 pages

600 Queries

Uploaded by

arjunsouravbob
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
164 views17 pages

600 Queries

Uploaded by

arjunsouravbob
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 17

QUESTIONS ON OPERATORS

1) WQD employee name, salary, manger number only for those who ARE
eraning salary more then 500rs.
2) WQD employee name, employee number, designation only for those who
are working as president.
3) WQD employee details, annual salary only for those who are working in a
department number 10.
4) Wqd employee name, manger number, salary, designation only for those
who are working in department number 30 and earing salary more than
2000.
5) Wqd employee name, salary, department number, designation only for
those who are working as salesman, clerk, analyst.
6) wqd employee name,designation,hiring date & also annual salary those who
are working as analyst,manager and they should be earning salary exactly
1250,300,800.
7) wqd employee details those who are hired on 31-dec-1991,01-may-1981 and
they should be earning commission more than 200 and thier employee name
should be ford ,james.
8) wqd employee name,salary,annual salary only those who are earning annual
salary should be more than 500 and they should be earning commission
300,500,1400 and they should be reporting to a manger no 7698.
9) wqd employee details only those who are hired before 01-may-1981 and
they should be working as salesman,analyst and display o/p in desc order
based on empno.
10) wqd employee details only those who are hired after 20-feb-1981 and
they should be earning salary less than 3000 and they commision should be
more than 100
11) wqd employee details only those who are earning salary less than
3000 and they should be hired before 22-feb-1981 And there dept no should
be 10,20,30 and display the o/p in desc order based on the salary.
12) wqd employee details those who are earning salary in a range of 1000
to 5000 and those should be working as manager,salesman,analyst
13) wqd employee details those who are hired on feb -81.
14) WQD regions details only the region name should consist of ‘a’ character.
15) WQD country name, region id for the country id ‘IN’,’US’ and country name should
consist of two ‘L’ .
16) WQD location details for country id beginning second character should be ‘N’ and street
address beginning with number ‘2’ and postal code be more than 1000.
17) WQD country details only country id should be exactly two character and the country
name should be ‘japan’, ’India’, ’Italy’.
18) WQD location details only the postal code should be exactly 4digit and the location id
should be in a range of 1800 to 2600.
19) WQD street address only the for the city ‘Sydney’, ’Bombay’ ,’Roam’ and street address
should consist of ‘rd’ as substring.
20) WQD city name, country id, postal code except city ‘Tokyo’ and postal code in a range
of 1000 and 5000,street address should be consist of two consecutive ‘a’.
21) WQD location details for the location id1600,1500,1700 and country id should be ‘us’
and Postal code should be exactly 5digit.
22) WQD location details only state province should consist of ‘maha’ as substring, city
name should consist of beginning third character ‘m’ and postal code should be in a range
of 3000 to 6000
23) List all the department names which are having blank space in their location and
having Dname with at least two EE's
24) Display all the employees who are having at least two AA's in their job description and
salary in the range 1200 to 2800 in dept 10,20,30.
25) Display all the employees whose name start with P
26) Display all the employees who aren't having any reporting manager with number ending
with '8' and not working as 'MANAGER' or 'SALESMAN' in dept 30.
27) List all the employees who are not getting any commission with their designation neither
'CLERK' nor 'MANAGER' and joined in the year 81 and getting salary more than 1500.
28) List all the employees whose name is having at least FIVE characters and joined in the
year 80 or 81 and having a reporting manager with salary in the range 800 to 2000 in
dept 30 or 40.
29) Display all the employees whose name is having exactly 5 characters and having vowel
as middle character
30) Display all the employee name who don't have commission and working in department
10,20.
31) list all the employees whose employee no is not 7654.
32) list the employees who have 2 T's in there name.
33) Display all the employees who's name end with T and start with A .
34) Display all the employees who's job name end with second character E
35) List all the employee whose department is not 20 and name don't have 'M' as first letter.
36) Display all the employees having greater than 1000 who joined in the month of
December and who are having reporting manager.
37) Display all the employees who have the at least minimum 4 characters in their jobs in
the department 20?
38) List all the employee who are working as clerk, name end with s except department
number 10 ?
39) List the employees whose EmpNo ends with '9' and don't having reporting Manager.
40) Select all the salesman whose name second character starts with 'A' and who have
joined after 20-FEB-81.
41) Select all the salesman whose name has atleast 1 character 'R' and whose salary is less
than 1500 and who are joined after 21-FEB-81.
42) list all the names with 'E' present in their names and their salaries is between 6000 and
12000
43) list all the employees whose salary is more then 4000 and commission is null and
deptno 10
44) Display all the employee whose earning salary not in the range 2500 and 5000 in dept
10 and 20 whose annual salary is ending with zero.
45) Display all the employee who are joined after year 81, not working as managers and
clerks in dept 10 and 20 with a salary in the range of 1000 to 3000.
46) Select all the employees whose name start with s or A in department 20 and 30. whose
are joined before 01-may-81 and after 01-may-80.
47) display all the employee whose job is clerk and annual salary ends with double zero?
48) display all the employee name whose name starts with 'a' and salary is range from 1000
to 300
49) List all employees who are having R as third character in their name, not working as
clerk and joined after JUN-81
50) Display all department names and location containing string 'ON' in it
51) all employees who were hired in year 81 and doesn't have a reporting manager
52) Display all the employees who are joined after 17-dec-80 and getting salary greater than
2000 and their jobs are analyst. And whose name start with S and end with T.
53) Display all the employees whose name having atleast one character O and his job is
analyst and whose joined after 17-nov-81.
54) Display all the employees who are not working as manager and analyst in dept 20 and
30 and whose getting salary range between 1000 to 3000 and their name having atleast
one O.
55) display all the employees whose names start with either w or m
56) Display all the employees who are getting some commission with their designation is
neither manager nor clerk.
57) Display all the employees who have joined in the month of December.
58) Display all the employees whose name is having two consecutive L's .
59) List ename, job and deptno who have reporting manager.
60) list all the employees whose salary between 1000 and 1500 working in dept 20,30
except clerk and salesman
61) Display all the manager whose annual Salary is ending with one
62) List all the employees whose name starts with ‘k’ or ‘p’
63) List all the employees whose name starts with ‘M’ or ‘K’ or 'N' or 'N'
64) Display all the employee who are ‘SALESMAN’s having R as the last character in ename
but salary having exactly 4 character
65) Select all the clerk whose name 4th character start with 'L' and earning salary less than
2000
66) List the salesman whose ename 2nd char is M and salary in range from 500 to 1500 in
it?
67) List all the employee's names,jobs,salary, who has at least one 's' in their name, earn
more than 2000 but not getting any commission in dept 10 and 20.
68) list all the employees whose employee number doesn't end with 2, name doesn't end
with 'N'or 'k', hired before 81 and earns more than 800 and salary contains at least one
zero digit.
69) Display all the employee who has a joining date on JANUARY, NOVEMBER or APRIL
in department 20,10 except 30, also having salary more than 2500.
70) list all emp in dept 20 and 30 whose epmno ends with 8 or 9 earning sal below 5000
71) Display all the employees whose name start with P

72) Display all the analyst and clerks in department 10 and 20


1) List all the department names which are having blank space in their location and
having Dname with at least two EE's
2) Display all the employees who are having at least two AA's in their job description and
salary in the range 1200 to 2800 in dept 10,20,30.
3) Display all the employees who aren't having any reporting manager with number ending
with '8' and not working as 'MANAGER' or 'SALESMAN' in dept 30.
4) List all the employees who are not getting any commission with their designation neither
'CLERK' nor 'MANAGER' and joined in the year 81 and getting salary more than 1500.
5) List all the employees whose name is having at least FIVE characters and joined in the
year 80 or 81 and having a reporting manager with salary in the range 800 to 2000 in
dept 30 or 40.
6) Display all the employees whose name is having exactly 5 characters and having vowel
as middle character
7) Display all the products whose name is having 2 consecutive underscores
8) Display all the employees whose name starts with s and does not end with vowel
9) Display all the products whose name is having ' (single quote) as character
10) Display all the employees who is working as manager for only one employee
11) List all the employees where reporting manager ID is ending with the number 8?
12) List all the employees who's job is salesman and the salary ranges between 1500 to
3000?
13) List all the employees who are working as managers and salesman in dept 20 & 30 with
a salary in the range of 1000 to 3000?
14) List all the employees who's salary is in the range of 1000 to 2000 in dept 10,20,30
except all clerks?
15) List all the employees who's names starts with letter A and who's salary is greater than
1000?
16) List all the student name whose percentage is above 60.
17) Display all the employee whose name has consecutive m in it.
18) Display all the employee whose job not belongs to clerk and whose department number
is 10 and 20.
19) List all the employee names who as always two P's and whose salary ranges between
1000 to 3000.
20) Display all the employee name who don't have commission and working in department
10,20.
21) list all the employees who is not having reporting manager in dept 20 and 30.
22) list all the employees whose name does not start with A
23) display all the employees who have joined in the year 87.
24) list the employees who have 2 T's in there name.
25) list all the employees whose employee no is not 7654.
26) Write a query to display all the salesmen in Dept 30
27) Write a query to display the employees whose salary is 3000 and 2000
28) List all the employees whose name has at least one R in it.
29) List all the employees whose salary is between the range 800 and 2500
30) List all the employees except who works for Dept 30
31) Display all the employees who's analyst salary greater than equal to 2000.
32) Display all the employees who's name end with T and start with A .
33) Display all the employees who are managers and with their annual salary
34) Display all the employees who are salesmen and with their annual bonus
35) Display all the employees who's job name end with second character E
36) Display all the employee who don't have commission and salary greater than 1000.
37) Display department name which 'LL' in their Location.
38) List all the employee whose department is not 20 and name don't have 'M' as first letter.
39) List all the employee with employee number between 7000 to 8000.
40) Display all the employee whose salary not in the range from 1500 to 3000.
41) Display all the employees having greater than 1000 who joined in the month of
December and who having reporting manager ?
42) Display all the employees who have the at least minimum 4 characters in their jobs in
the department 20?
43) List all the employee who are in clerk name end with s except department number 10 ?
44) Display the employee name should be 5 character?
45) List all the employee who are getting salary more than highest commission?
46) Display the sentence with a combination of ename ,sal ,deptno from emp table
47) Display the employee whose second letter from the beginning is 'A' and the last second
letter is 'R'
48) Display the employee who is earning salary more than 300/- but not more than 3000/-
49) Display the details of analyst
50) Display the details of employee who does not take commission
51) List all employee with annual salary with 500 rs bonus and working as manager joined in
the month of April and may
52) Write a query to display employee whose emp no starts with 78 and 79 whose
designation contains at least one E in dept no 20 and 30
53) List all the manager working in dept 30 and 20 hired between 02-jan-81 to 9-june-81
54) List the employee job with hiredate whose name starts between A and S working in dept
30 and 20
55) Write a query to display Dname which contains at least two S and at least one of O or A
in their location
56) List all the manager working in department 20 &30 hired between 02-jan-81 & 09-june-
81.
57) Write a query to display employees whose employee id starts with 78 & 79 whose
designation contains atleast one E and working in department 20 & 30.
58) List the employee job with hiredate whose name starts between 'A' & 'S' working in
department 20 & 30 also display commission amount.
59) Write a query to display name which contains atleast two S & atleast one 'O' or 'A' in
their location from department table.
60) List all the employee with annual salary with 5000rs bonus working as manager joined in
the month of april& may.
61) List all the manager working in department 20 &30 hired between 02-jan-81 & 09-june-
81.
62) Write a query to display employees whose employee id starts with 78 & 79 whose
designation contains atleast one E and working in department 20 & 30.
63) List the employee job with hiredate whose name starts between 'A' & 'S' working in
department 20 & 30 also display commission amount.
64) Write a query to display name which contains atleast two S & atleast one 'O' or 'A' in
their location from department table.
65) List all the employee with annual salary with 5000rs bonus working as manager joined in
the month of april& may.
66) 1.List all the employees in dept 20 who have salary less than 500
67) 2.List all the employees who work in dept 10
68) List all the employees who should report to manager in dept 30
69) List all the employees whose salry is greater than 3000
70) List all the employees whose job is analyst
71) List the employees whose salary in the range of 2000 to 3000 except in dept 10 and 20
in all clerks?
72) List the employees whose name is having letter 'E' as last but two character?
73) list all the employees who is having comm in dept 30?
74) Display all the employee whose earning salary in the range 2500 and 5000 in dept 10
and 20?
75) list all the employees who are not having reporting manager in dept 20?
76) List the employees who are '5' no in second position in empno as well as mgr
77) List all the salgrade whose low salary between 1000 to 2000
78) List the employees name who's are having 3rd letter should 'A' in ename in it
79) List all the manager who earn less than 3000
80) List the departments name who are having 3rd letter should 'n' in it
81) Display all employees working as a Clerk and Sal not more than 1500 in Dept 10,20,30.
82) List the employees whose job and Ename having letter 'T'.
83) List all employees except who are having Commission
84) Write a query to display Deptname and location having character 'o'.
85) List the employees whose EmpNo ends with '9' and don't having reporting Manager.
86) Display all the employees whose joined between Feb and may.
87) Display all the enames who is having a reporting manager 7698.
88) Display all the employees whose getting highest salary in department 20 and 30.
89) List all the enames in department 30 who is having 'A'is one of the character .
90) List all the department names and location with atleast 2O's.
91) List all employee whose name starts with k and ends k?
92) List the department which are having k in their location as well as their department
name?
93) List all the employee is having letter P in the 3rd position?
94) List all the emp whose MANAGER employee number between 7698,7839 and salary
ends with number 5?
95) List all the employee whose employee 3rd letter should 2 and his manager annual
salary between 30000 to 35000?
96) List the employee who joined in any year but not belongs to the month of march.
97) list the employee of department no 30 or 10 joined in the year 81.
98) Display the names of employee working in department no 10 or 20 or 30 employee
working as clerk,salesman or analyst.
99) List the employees whose names having a character get 'll' together.
100) Display the details of the employee whose comm is more than their salary.
101) List all the emp whose name has atleast one 'a' in it.
102) List all the emp in dept 30 whose sal >= 1500.
103) List all the emp who are hired in year 81.
104) List all the analyst in all the department.
105) List all the emp who are receiving commission.
106) List the employees whose name does not start with ‘A’
107) Display all the employee who are joined in JAN.
108) Display all the employee who are ‘MANAGER’s having E as the last character in
ename but salary having exactly 4 character.
109) List all the employees who are having reporting managers in dept 20.
110) Display the employees who are having employee no as 7902,7934.
111) Display all the employees name start with J?
112) List all the employees whose Commission greater than 100?
113) List all the employees who have joined in the month of April?
114) List all the employees whose salary is less than 5000?
115) List all the employees who have joined in the year 82?
116) Display all the employees whose job has string 'na' in it.
117) Display all the employees who joined after Feb 81
118) Display all the employees except those who are working in dept10&30.
119) Display all the employees whose commission is not null.
120) List all the employees who are having reporting manager in dept 10&20.
121) Display all the employees whose job has string ‘ANA’ in it.
122) Display all the presidents in department 10.
123) List the employees whose hire date is before feb 81.
124) Display all the employees whose name starts with alphabet ‘B’ and ends with a
‘E’ and salary more than 2200.
125) Display the students whose name is having both first character as ’B’ and last
character as a vowel and percentage more than 85 but less than 90.
126) Select all the employees whose name 4th character starts with 'n' and 1st
character start with 'a' or 's' who is working in department 30
127) List all the employees who is working in department 10 and salary in the rage of
1500 and 5000 and having commission >=500
128) List the employee except those who are working in dept 10 & 30 and joined after
03-Dec-81
129) List all the employees whose name having consecutive 'SS' and working in dept
10 whose salary in the range of 500 and 1500
130) List those employees who are having reporting manager in dept 20,10,30 and
name end with 'S' with salary in the range of 2000 and 3000 and joined before 19-June-
87
131) list all the employees whose names end with TT.
132) list all the employees who have commission of 500 or more.
133) list all the employees whose salary is between the range 500 and 2000 and
belongs to dept 20 and dept 30
134) list all the salesman and analyst who work in dept 20 and dept 30
135) list all the employees whose salary is less than 1000 and doesnt belong to dept
20
136) List all the analyst in department number 20 and having salary greater than 2000.
137) List all the employees except clerk and analyst and who are not earning salary in
the range 1000,3000.
138) Select all the salesman whose name second character starts with 'A' and who
have joined after 20-FEB-81.
139) List all the employees who are getting 3000 and excess salaries working in
department 10 and 20.
140) Select all the salesman whose name has atleast 1 character 'R' and whose
salary is less than 1500 and who are joined after 21-FEB-81.
141) Write a query to display all the employee details who joined on the year 81 and
who has A in his employee name and who gets a commission in the deptno starting with
3.
142) Write a query to list all the employees who has a manager and has annual salary
greater than 10000 and his empID is between 7850 to 7950 and who works as a analyst.
143) Write a query to list all the department details where department name has E or
A and whose location has A and whose deptno is 30.
144) Write a query to display the employees who has salary less than 2000 and more
than 3000 and who joined on NOV or SEP and gets a total monthly salary of less than
2000 including commision.
145) Write a query to display the employee details and quaterly salary of employees
except SALESMAN whose salary i more than 500 but less than 2000 and name starts
with S.
146) list all the names with 'E' present in their last names and their salaries is
between 6000 and 12000
147) hint: login using HR
148) list all the names of employees who are not working as 'IT Programmer or clerk'
and whose sal is more than 3000.
149) List all the departments starting with location no 1700 and those who have
managers.
150) hint:refer departments table in HR
151) list all the employee first and last name followed by 'your job is ' and the job
along with their salaries greater than 9000
152) list all the employees first name followed by ' your salary is ' salary and their
phone number should contain atleast '1' number somewhere and they must not be Sales
representative and hr representative.
153) Display only the manager codes of the employees whose salary is more than
1000 and hiring date is in the year 81
154) Display all the employees who report to the manager 7698 and are salesman
whose names end with N
155) Display only the employee name along with the joining date in one column from
department 30 and the joining date is in the year 81
156) List the employees who are Clerks and salary is above 1000 and the hired date
is after year 81
157) List the employees whose salary is between 1000 to 3000 except clerks whose
name third character starts with A
158) List all the employees except salesman and manger in deptno 10
159) List all the employees who are nor earning salary in the range 1500 and 3000
160) Display all the employees who are 'MANAGER' having J as first character in
ename
161) List all the salesman in deptno 20 and having greater than 2000
162) List all the employees whose name starts with 'J' or 'F'
163) Display the names who are not salesman and analyst and whose salary is more
than 1000 working in department 20
164) display the name whose last but not two is L having some commission and does
not belong department 10 and 20
165) salesman whose salary is ending with 5
166) employees joined between 80 and 81
167) list all the salesman whose name consists of n
168) List all employees who is analyst ,clerk and salesman
169) List all the employees whose name start with a and end with n
170) List all the employees Whose name doesn't start with n
171) List all the employees whose name having 5 characters and salary between
2000 and 20000
172) Display all employees whose is working as analyst and salesman and working in
dept 10 and 20 and salary less than 30000
173) List all the employees who joined in the year 82 and salary greater than 1000
174) List all the employees who are salesman and not have any commission
175) List all the employees whose ratio of commission to salary is greater than 0.5
176) Display the name and job of the employees whose name second character is 'L'
and designation is not 'SALESMAN'
177) Display all the employees whose name 3rd character is 'R' and getting some
commission
178) SELECT ALL THE EMPLOYEES HAVING COMMISION >1000 JOIN THE JOB
ON SEP WHOSE NAME HAVING 'T' LAST BUT TWO AND DEPT NO IS NOT 10 OR
20.
179) SELECT ALL THE EMPLOYEES WHO JOIN ON DATE 17TH OF ANY YEAR
THERE SAL IS EQUAL TO 800 OR 5000 AND THERE DEPTNO NOT EQUAL TO 30
180) SELECT ALL THE ANALYST WHOSE NAME NOT HAVING 2
CONSECUTIVE 'T'S & SAL IS BETWEEN 2000 AND 3000 NOT BELONGS TO
DEPTNO 10 OR 20.
181) SELECT ALL THE EMPLOYEE WHO'S NAME HAVING 2 CONSECUTIVE
'L' THEY NEITHER THE SALESMAN NOR MANAGER HAVING SAL <2000 &
JOINING ON 1ST MONTH OF ANY YEAR.
182) list all the employees whose job is analyst and name starts with the 3 rd
character as s and the salary more than 3000.
183) list all the employees whose job is salesman and hiredate is between 17-dec-18
to 08-dec-81 and deptno as 30
184) list all the employees whose name is king and the salary is greater than 5000 in
the dept 10 and 20
185) list all the employees whose salary is more then 4000 and commission is null and
deptno 10
186) list all the employees whose reporting manager is not null and the deptno is 10
and 30 and salary is more than 3000
187) List all the employees in dept 20, earning more than Rs 2500 and not having
commission and whose name does not start with ‘S’.
188) Display all the employee whose earning salary not in the range 2500 and 5000 in dept 10
and 20 whose annual salary is ending with zero.
189) Display all the employee who are joined after year 81, not working as managers and
clerks in dept 10 and 20 with a salary in the range of 1000 to 3000.
190) List the department names, Locations which are having letter ‘O’ in their locations
as well as their department names NOT IN DEPT 20 AND 40.
191) Select all the employees whose name start with s or A in department 20 and 30. whose
are joined before 01-may-81 and after 01-may-80.
192) List all the employees whose salary is between 1000 and 3000 who are
salesman not working in department 10,20 with commission greater than 1000.
193) List all the department name where department number is greater than 20 and
location has atleast one character a.
194) List all the clerk whose salary is less than 1000 who joined after year 75 and also
display their annual salary.
195) List all the managers,analyst and salesman with annual commission in department 10
and 30 with salary less than 2000 and also display their annual salary of 2 years.
196) List all the employees who joined after year 80 and having salary is between 2500 and
4000 and also calculate their salary after six months.
197) select all the manager whose salary is more than 2500 and department of 20 or 30.
198) select all the employee whose employee no second digit is 8 and who do not have
manager.
199) select all the employee who work in department 10, 20, 30 and salary is more than 2000
and who are joined in between the year 85 to 87.
200) list all the department no which is having concatenate L in location name
201) list all the employee name who earn more than 1500 salary with commission and
working in department 20 and 30 and employee name consists at least one A.
202) DISPLAY ALL THE EMPLOYEE WHOSE JOB IS CLERK AND ANNUAL SALARY
ENDS WITH DOUBLE ZERO?
203) DISPLAY ALL THE EMPLOYEE NAME WHOSE NAME STARTS WITH 'A' AND
SALARY IS RANGE FROM 1000 TO 3000?
204) DISPLAY EMPLOYEE NAME WHO HAVE EXACTLY 5 CHARACTERS IN THEIR
NAME AND WHO WORKS IN DEPT 30?
205) DISPLAY ALL THE EMPLOYEE WHOSE HAVING REPORTING MANAGER FROM
DEPT 20 AND DEPT 30?
206) DISPLAY EMPLOYEE NUMBER WHOSE NAME DOESN'T ENDS WITH 'S'?
207) List all employees who is working as clerk in dept 30 and getting salary above 2000
208) List all employees who are having R as third character in their name, not working as
clerk and joined after JUN-81
209) List all employees who are working under same manager
210) List all departments which are having A as last before character in their location whose
deptno is not 10
211) List all the managers who don't get a commission in deptno 20 and 30
212) Display all employees with names containing characters A and R together in it and are
getting commission
213) Display employees with same salary
214) Display all employees except salary range between 1000 and 5000 and are hired after
year 1980
215) Display all department names and location containing string 'ON' in it
216) Display all employees who were hired in year 1981 and doesn't have a reporting
manager
217) List all the employees whose getting salary less than 1000 and whose name start with s
and end with h and whose working in dept 20.
218) Display all the employees who are joined after 17-dec-80 and getting salary greater than
2000 and their jobs are analyst. And whose name start with S and end with T.
219) Display all the employees whose name having atleast one character O and his job is
analyst and whose joined after 17-nov-81.
220) Display all the employees who are salesman, analyst, president and manager and their
salary is greater than 1000 along with the employees whose getting commission.
221) Display all the employees who are not working as manager and analyst in dept 20 and
30 and whose getting salary range between 1000 to 3000 and their name having atleast
one O.
222) list all the employees who are working as salesmen and analyst in dept 20 and 30 with a
salary in the range of 1000 and 2000?
223) list all the employees whose salary is not in the range of 2000 to 3000 in dept 10 except
all clerks?
224) display all the salesman whose quarterly salary ends with 5?
225) list all the employees from the accounting department and all the employees who are
located at boston?
226) display all the employees whose names start with either w or m?
227) List all employee number whose employee number ending with at least 4 or 7.
228) List all employee whose manager is either blake or king
229) List all employee whose date of joining is before 82 and salary should be more then
2000.
230) List all employee whose name start with A and has A in between
231) List all employee whose manager is king and have salary more then 1500.
232) Display all the employees in department 10 whose salaries are lesser than 1000.
233) Display all the employees who are getting some commission with their designation is
neither manager nor clerk.
234) Select * from emp where COMM IS not null And JOB NOT IN ('MANAGER','CLERK');
235) Display all the employees who have joined in the month of December.
236) Display all the employees whose name is having two consecutive L's .
237) Display all the employees whose salary is not in the range 2000 and 5000 in department
10 and 20
238) List all the employees whose job is neither clerk nor salesman in dept 10
239) List all the location name whose name has atleast one o in department 30 and 40
240) List all the employees whose job is not clerk and annual salary is more than 1000
241) Select the employees whose names has 2 consecutive l's
242) Select all the employees whose emp number end with 9
243) List all the employees who have joined except on apr and nov an sal more than 2500
244) List all the employees whose annual salary is equal to or more than 10000.
245) Display only ename whose name has two consecutive T's .
246) List ename, job and deptno who does have reporting manager.
247) Display all the employees whose salary is less than 1000 in dept 10 and 30.
248) list all the employees whose salary not in range of 1000 and 2000 in dept 10,20 except
manager
249) list all the employees whose salary between 1000 and 1500 working in dept 20,30
except clerk and salesman
250) list the department names which are having letter 'A' in their locations as well
as department name
251) Display all the employees who are 'manager' having 's' in their last character in ename
252) Display all the employees who have joined after 02-feb-80 except salesman
253) display all the students who are ME or CIVIL with percentage greater than 75%.
254) list all employees except those who are not working in dept 10,20 & 30.
255) Display all the manager whose annual Salary is ending with one ?
256) Select all the salesman whose salary not between 500 and 1000 in department 20 ?
257) Display all the employee who are getting some commission with their designation
is MANAGER and CLERK ?
258) List all the salesmen in dept number 10 and having salary greater than 2500 ?
259) List all the employees whose name starts with ‘k’ or ‘p’ ?
260) Display employees from whose name is having letter ‘R’ in it?
261) List all the employees whose name starts with ‘M’ or ‘K’ or 'N' or 'N'?
262) Display all the employee who are ‘SALESMAN’s having R as the last character in ename
but salary having exactly 4 character
263) Display all the employees whose job has string ‘LES’ in it.
264) Select all the clerk whose name 4th character start with 'L' and earning salary less than
2000
265) List the employees whose name doesn't have letter S in it?
266) List the employees whose salary is not in range from 1000 to 2000 in dept 20 and 30
except all clerk and analyst?
267) List the employees whose name start with S and ends with H
268) List the employees whose salary is >1500 and <2500
269) List the salesman whose ename 2nd char is M and salary in range from 500 to 1500 in
it?
270) List all the employee's names,jobs,salary, who has at least one 's' in their name, earn
more than 2000 but not getting any commission in dept 10 and 20.
271) List out all the managers and clerks who joined in year 81 and earns more than 2000 but
not getting any commission.
272) list all the departments which has at least one 'o' in it's location,which has department
number exactly of 2 digits and department name doesn't have any '%' character
273) list all the employees whose employee number doesn't end with 2, name doesn't end
with 'N'or 'k', hired before 81 and earns more than 800 and salary contains at least one
zero digit.
274) List all the employees who has reporting manager, whose name doesn't have any R or A
character, who earns between 2000 and 3000, who joined after 80 and before 83, works
in department 10,20,30.
275) Display all the employee who has a joining date on JANUARY, NOVEMBER and APRIL
in department 20,10 except 30, also having salary more than 2500.
276) Display employee name who has their name starting with letters A, J and K also having
salary in the range 800 to 2500 with not getting any commission.
277) Display the employee's name whose gross salary is more than 1500.
278) Display employee name who has their employee number between 7521 to 7782.
279) Display employee number who doesn't get any commission in department 30 but getting
salary exactly 1600.
280) List the manager in employee table with yearly bonus of Rs5000 who salary lesser than
Rs2500.show annual salary along with employee table.
281) List all the employees data whose name having 2 L's and matching at least 1 L's in
their job's whose deportment number 10.
282) List all the employees whose are all joining from 30-DEC-81 to 30--DEC-87 and their
deportment 20,30 whose Annual salary are Rs 1000 bones of half-off the year . list their
Annual salary along with employee data .
283) List all the employees annual salary who earn the monthly salary Rs 1000 to Rs 5000
.Their department number not in 20 . Also date of joining after 01-JAN-82 and before
01-JAN-88.
284) List all the employees where reporting manager not having NULL Value and deportment
number is either 20 or 30 whose employee name start with S's .
285) LIST ALL DEPT WHICH DO NOT HAVE LETTER 'T' IN LOCATION AS WELL AS
DEPARTMENT NAME ?
286) LIST ALL EMP HIRED BEFORE 83 EARNING SALARY IN RANGE 500 TO 1500 AND
GETTING NO COMM?
287) LIST ALL SALESMAN IN DEPT 30 HIRED IN THE YEAR 81 WHO GET SOME
COMM?
288) LIST ALL EMP IN DEPT 20 AND 30 WHOSE EPMNO ENDS WITH 8 OR 9 EARNING
SAL BELOW 5000?
289) LIST ALL CLERKS AND SALESMAN IN DEPT 10,20,30 WHOSE NAME STARTS WITH
LETTER A?
290) Display employee who work as manager, salesman or analyst and getting sal 3000 or
more.
291) Display all Analyst whose name doesn't end with 'S'
292) Display all employees whose total salary is more than 2000
293) Display employees whose department between 10 ,20 and salary within 1000 and 4000
294) Display employees having salary of 4 digits and start with 2 and end with 0
295) List all the employees who earn 3000 in department no 20
296) List all the employees whose job does not ends with T
297) List all the manager and analyst using IN operator
298) Display all the employees who works salary between 2500 and 5000 in department no
10 & 20
299) List all employees except president and clerk
300) waqtd annual salary and annual comm for all the e's.
301) waqtd half term commission for all the e's.
302) waqtd salaries, one with increment of 1000 and the other with decrement of 500.
303) waqtd salary with bonus of 5000 and salary with the penalty of 1000.
304) waqtd 25% hike of the salary.
305) waqtd 75% hike and 25% deduction of the salaries.
306) waqtd 40%increment and 20% decrement of the salaries.
307) waqtd 25% hike of the annual salary.
308) waqtd empdetails working as clerk.
309) WAQTD EMPLOYEE ALLEN'S salary.
310) WAQTD SMITH'S DEPARTMENT NUMBER.
311) WAQTD date of joining and commission for the for the employee id 7369.
312) waqtd designation and manager number for the e's earning salary less than
2500.
313) waqtd emp details who joined the company on 3rd december 1981.
314) waqtd empnames who are not working in dept 20.
315) waqtd salary,commission and enames earning atleast 2000 as their salary.
316) waqtd emp details earning commission greater than their salary.
317) waqtd empid and empnames who are reporting to 7839.
318) waqtd emp details who got hired before the year 1981.
319) waqtd sal values in increasing order.
320) waqtd emp names with their commission and sort the o/p w.r.t commisssion
321) in decreasing order.
322) waqtd emp details for the salesman and sort the o/p such that the employee
323) who joined recently should be displayed first.
324) waqtd empnames in alphabetical order.
325) WAQTD ANNUAL SALARY AND ARRANGE THE ANNUAL SALARY IN
DECREASING ORDER FOR THE EMPLOYEES WHOSE ANNSAL IS GREATER
THAN 15000.
326) waqtd employee dtails working as a clerk or manager.
327) waqtd emp details working as a clerk in department number 20.
328) waqtd ename and their job reporting to 7839 or 7698.
329) waqtd empnames earning more than 2000 but having employee number less
than 7800.
330) waqtd emp details working as a manager but reporting to 7839.
331) waqtd e.details who got hired in the year 1981.
332) waqtd e.details for allen or smith .
333) waqtd e.details working in deptno 10 or 20.
334) waqtd e.details except the employees ward and james.
335) waqtd e.details working as clerk and earning sal less than 4000 but reporting to
7839.
336) waqtd e.details working as a clerk or manager in the department number 20.
337) waqtd e. details earning salaries 800 or 950 or 1250 or 3000.
338) waqtd employee details for the e's allen, smith or ward.
339) waqtd employee details rEPOrting to 7839 and 7698.
340) waqtd e.details who got hired on 3rd dec 1981 or 2nd april 1981 or 28th
september 1981.
341) waqtd employeenames along with designation for the e's not working in
department 10 and 20.
342) waqtd employee details who are not working as a clerk or a salesman but
working in the 20 dept.
343) waqtd e.details earning comm in the range 300 to 1500.
344) waqtd e.details who got hired in the year 1981 only.
345) waqtd e.details who are having employee numbers from 7300 to 7900.
346) waqtd e.details who are not earning salary within 2000 to 5000.
347) waqtd e.details who did not join the comPany in the year 1987.
348) DISPLAY THE EMP NAMES WHICH STARTS WITH THE CHAR S.
349) DISPLAY THE DESIGNATION WHICH ENDS WITH CHAR R.
350) WAQTD 3 DIGIT SALARY VALUES.
351) WAQTD ENAMES WHICH CONTAIN 'A' IN THE 2ND POSITION.
352) WAQTD DESIGNATION WHICH CONTAINS 2 A'S IN IT CONSECUTIVELY.
353) WAQTD ENAMES WHICH CONTAINS 2 A'S IN IT.
354) WAQTD SAL VALUES WHICH START WITH 2 AND HAS EXACTLY 4 DIGITS
IN IT.
355) WAQTD EMPLOYEE NO'S WHICH STARTS WITH 7 AND ENDS WITH 9.
356) WAQTD EMPLOYEE DETAILS WHO GOT HIRED IN THE YEAR 1981.(ANY
MONTH,ANY DATE)
357) WAQTD EMPLOYEE DETAILS WHO GOT HIRED IN THE MONTH OF
DECEMBER.(ANY YEAR,ANY DATE).
358) WAQTD DESIGNATION VALUES WHICH DOES NOT CONTAIN SUBSTRING
'MAN' IN IT.
359) WAQTD ENAMES WHICH STARTS WITH CHAR 'S' OR 'A'.
360) WAQTD EMP DETAILS WHO DID NOT JOIN THE COMPANY IN THE YEAR
1981.
361) waqtd the no.of e's working in department 20.
362) waqtd no.of e's who are working as clerk or salesman.
363) waqtd highest and lowest salary among the e's allen,smith and ward.
364) waqtd the recent and oldest date of joining.
365) waqtd no. of e's and avg comm for the e's who joined the comp in the year 1981.
366) waqtd total salary and highest salary earned by the e's who are earning
commission.
367) waqtd least employee number for the e's who are not earning salary in the
368) range 2500 to 5000.
369) display avg comm, total comm and the no. of e's for those who earn 4 digit
salary.
370) display no of e's who are reporting to 7839 and 7698.
371) waqtd no of e's working in each department.
372) waqtd the no.of e's ,highest and lowest salary for e's working in each job.
373) waqtd no.of e's,avg and total salary earned by the e's reporting to each manager
number.
374) waqtd department wise total salary for the e's except clerk and salesman.
375) waqtd job wise no.of e's and lowest salary except for the e's working in dept 10
and 20
376) waqtd no. of e's working in each department except for dept 10.
377) waqtd mgr no. wise no.of reportings if the e's are not reporting to 7839.
378) waqtd no of e's and avg sal for the e's who joined on each date if they are
earning commission
379) and the sort the output w.r.t avg sal in decreasing order.
380)
381) waqtd no. of e's working in each department only if atleast 4 e's are working in
that dept.
382) waqtd no. of e's working in each job only if less than 3 e's are working in that job
383) waqtd dept wise no of e's and total salary only if total salary is greater than
5000.
384) waqtd job wise no of e's and highest salary only if more than than 3 e's are
working in the dept 30
385) and sort the o/p w.r.t highest salary in ascending order.
386) waqtd no.of e's reporting to each mgr except for 7839 only if atleast 2 e's are
reporting.
387) waqtd no. of e's working in each dept only if more than 3 salesman are
388) working in that dept.
389) waqtd no of employees and total salary for e's working in each job only if the total
salary
390) is between 5000 and 20000.
391) waqtd dept wise total salary and avg salary only if more than 2 e's
392) are working in that department and total salary is less than 20000.
393) WAQTD ONLY THE DEPARTMENT NUMber where atleast 4 e's are working in
that dept.
394) WAQTD EMPLOYEE NAMES EARNING SALARY MORE THAN ALLEN.
395) WAQTD E.DETAILS working for the job same as smith.
396) waqtd e.details working in the dept no. same as king.
397) waqtd enames earning salary less than the president.
398) waqtd e.details earning comm less than the employee having employee no.7654.
399) waqtd e.details who joined the company before king.
400) waqtd e.details who are not working in smith's department number.
401) waqtd e.details who are working for the job same as allen and smith.
402) waqtd e.details who are not reporting to allen and smith's manager.
403) waqtd e.details who joined before miller but after smith.

You might also like