Assignment 3
Assignment 3
Assignment 3
Employee Table
2)Write query to display the last name, job code, hire date, and employee
number for each employee, with the employee number appearing first.
Provide an alias
STARTDATE for the HIRE_DATE column.
3)Write query to display all unique job codes from the EMPLOYEES table.
4)Need more descriptive column headings for its report on employee Name
the column
headings Emp #, Employee, Job, and Hire Date, respectively for
employee_id,last_name,job_id,hire_date .
5)A report of all employees and their job IDs. Display the last name
concatenated with the job
ID s (separated by a comma and space) and name the column Employee and
Title.
6)create a query to display all the data from that Employee able.
Separate each column output with a comma. Name the column THE_OUTPUT.
7)Displays the last name and salary of employees who earn more than
$12,000. Place your SQL statement in a text file named lab_02_07.sql. Run
your query.
8)Displays the last name and department number for employee 176.
9)Display the last name and salary for any employee whose salary is not
in the $5,000–$12,000 range.
10)Display the last name, job ID, and start date for the employees whose
last
names are Matos and Taylor. Order the query in ascending order by start
date.
12)Display the last name and salary of employees who earn between $5,000
and $12,000, and are in department 20 or 50. Label the columns Employee
and Monthly Salary, respectively.
13)Display last name and hire date for all employees who were hired in
1994.
14)Display the last name and job title of all employees who do not have a
manager.
16)Displays the last name and salary of employees who earn more than an
amount that the user specifies after a prompt.
17)Create a query that prompts the user for a manager ID and generates
the employee ID, last name, salary, and department for that manager’s
employees. Should have the ability to sort the
on report on a selected column.
18)Display all employee last names in which the third letter of the name
is “a.â€
19)Display the last names of all employees who have both an a and an e in
their last name.
20)Display the last name, job, and salary for all employees whose jobs
are either that of a sales
representative or a stock clerk, and whose salaries are not equal to d
$2,500, $3,500, or $7,000.
21)Display the last name, salary, and commission for all employees whose
commission amount is 20%.