Count how many employees have blue eyes and are married- Database Management System

Count how many employees have blue eyes and are married- Database Management System

Using the attached database WK5_DB_ACCESS2000.mdb write SQL queries to answer the following questions.

1. Show the employee (by name) that is shortest.

2. Determine the average number of years that the average employee has been working.

Hint: here’s how to get started:

SELECT (Now()-[HIRE_DATE])/365 AS YEARS
FROM EMPLOYEES;

3. Count how many employees have blue eyes and are married.

4. Write the SQL to answer this question: which employees have the same letter starting their first name as their last name (every employee actually meets this criteria, but pretend you didn’t know that and write the SQL to figure this out.)

Hint: the Left() function will be helpful. For example: SELECT Left([L_NAME],1)

5. Answer this question using SQL: show which eye color is most dominant in the employees (its Brown, with a count of 4 employees) – in other words, show the eye colors by count but only show the max value of count (4).

Order from us and get better grades. We are the service you have been looking for.