BCIS 36101. Import the Department and Employee tables into Access. (10 points)
a. Use TableName_<your EUID> as the naming convention for the tables: For example, my EUID is ks0776; I will name the tables as Department_ks0776 & Employee_ks0776
2. Establish a relationship between tables in MS Access. (10 points)
3. Answer the following questions by writing SQL statements in MS Access:
a. Find all employees working in Westlake who make $100,000 or more in salary. Sort your data by Salary in a descending order. (10 points)
b. Find all employees who have ‘Director’ or ‘VP’ in their titles. This should include Sr. Directors and SVPs as well. (10 points)
Hint: Use LIKE. Note that MS Access does not use ANSI SQL, hence the wildcard characters used in MS Access are different. Please follow https://www.techonthenet.com/access/queries/like2007.php for details.
c. Generate the count of employees and average salaries by Department for the departments where the average salary is greater than $70,000. The outcome should look something like: (the numbers below are just examples…your numbers will be different). Make sure that you use the Column headers shown in the outcome. (15 points)
Department EmployeeCount Avg.Salary
Accounting 10 98500
Finance 8 88300
Sales 6 105010
……….additional rows in the outcome
d. Generate a list of all employees with their names, titles, salaries, department names, and Department City. Note, the outcome should include all employees regardless of whether they belong to a department or not. (10 points)
Generate a list of all employees from Accounting or Finance departments who are 50 years or older, and are making more than $75,000.
Hint: You will have to use the DOB and the Date() function to calculate the age. (15 points)