Count how many employees have blue eyes and are married.

Assignment Help Database Management System
Reference no: EM13949661

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).

Attachment:- WK5_DB_ACCESS2000.zip

Reference no: EM13949661

Questions Cloud

Evaluating the quality of a two-phase liquid-vapor mixture : 1. Each of the following exercises requires evaluating the quality of a two-phase liquid-vapor mixture: (a) The quality of a two-phase liquid-vapor mixture of H2O at 40°C with a specific volume of 10 m3/kg is
Investigating possible vulnerabilities of microsoft iis : Case Project: Investigating Possible Vulnerabilities of Microsoft IIS 6.0, Carrell Jackson, the Web developer for Alexander Rocco Corporation, has informed you that Microsoft 115 6.0 is used for the company's Web site
Prepare a table that shows total cost of forming equipment : Prepare a table that shows the total cost of forming equipment rental and unit cost for units ranging from 0 to 50,000, using increments of 10,000 units.
Brief discussion of the extent to which the provided data : A brief discussion of the extent to which the provided data and/or your chosen method of analysis are appropriate and/or sufficient to test the biological hypothesis.
Count how many employees have blue eyes and are married. : 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.)
Determine the specific volume at the state : 1. Complete the following exercises. In each case locate the state on sketches of theT-y and p-y diagrams.
Write two equations for the mesh currents : Write two equations for the mesh currents shown in standard form. find the values of i1 and i2 find the voltage V (over the 2 Ohms resistor) and the current i (over the 3 Ohms resistor)
Determine specified property at the indicated state : 1. For each case, determine the specified property at the indicated state. Locate the state on a sketch of the T-y diagram.
Critically discuss the variety of personality measures : Identify and critically discuss the variety of personality measures available to managers. Your response should consider the purpose of this testing from an organisational perspective.

Reviews

Write a Review

Database Management System Questions & Answers

  Knowledge and data warehousing

Design a dimensional model for analysing Purchases for Adventure Works Cycles and implement it as cubes using SQL Server Analysis Services. The AdventureWorks OLTP sample database is the data source for you BI analysis.

  Design a database schema

Design a Database schema

  Entity-relationship diagram

Create an entity-relationship diagram and design accompanying table layout using sound relational modeling practices and concepts.

  Implement a database of courses and students for a school

Implement a database of courses and students for a school.

  Prepare the e-r diagram for the movie database

Energy in the home, personal energy use and home energy efficiency and Efficient use of ‘waste' heat and renewable heat sources

  Design relation schemas for the entire database

Design relation schemas for the entire database.

  Prepare the relational schema for database

Prepare the relational schema for database

  Data modeling and normalization

Data Modeling and Normalization

  Use cases perform a requirements analysis for the case study

Use Cases Perform a requirements analysis for the Case Study

  Knowledge and data warehousing

Knowledge and Data Warehousing

  Stack and queue data structure

Identify and explain the differences between a stack and a queue data structure

  Practice on topic of normalization

Practice on topic of Normalization

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd