DB LAB 1 Home TASKS
DB LAB 1 Home TASKS
Use Column Alias to remain Employee_id as Employee, Last_ Name as “Sur Name” and
First_Name as First Name.
Instead of retrieving all 107 rows from employees table for all job ids, find only distinct
job ids
Show First_Name and Last_Name of Employee after concatenation of Both name as
“Name”
Write a query to find high-salary and low-salary employees. Display the First Name , last
name and salary for any employee whose salary is not in the range of $5,000 to $12,000.
Write a query to display the last name and job title of all employees who do not have a
manager.
Display the last names of all employees who have both an “a” and an “e” in their last
name.
Display the last name, job, and salary for all employees whose jobs are either those of a
sales representative or of a stock clerk, and whose salaries are not equal to $2,500,
$3,500, or $7,000
Display the yearly salary of employees
Display the first name, last name, and hire date of all employees who were hired after
January 1, 2005.
Write a query to find employees who were not hired in the years 2004, 2005, and 2006.
Display their first name, last name, and hire date.
Write a query to find employees whose commission percentage is greater than 0.1, but
their salary is less than $9,000. Display their first name, last name, salary, and
commission percentage.
Write a query to find employees who are not in any management position (e.g., titles
that do not contain 'Manager'). Display their first name, last name, and job title.
Write a query to find employees whose phone number starts with the area code '515' or
'650'. Display their first name, last name, and phone number.