SQL Assignment
SQL Assignment
Queries:
Dept
Emp
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’99
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-2002
11) To list all the employees whose names are having ‘O’ as second
character
12) To list all the employees whose names are having ‘R’ 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 ‘R’ and
ending with ‘O’