Download Create a new database and name it “Hawaii Restaurants – Your Full

Survey
yes no Was this document useful for you?
   Thank you for your participation!

* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project

Document related concepts
no text concepts found
Transcript
Hawai’i Restaurants
35 Points
Querying a Database Using the Select Query Window
Create a new database and name it “Hawaii Restaurants – Your Full Name.” Save this database into:
Q:/Period _ Hawaii Restaurants.
Create a table in the “Hawaii Restaurants” database and name it “Restaurant Information – Your full name”
Design the table with the following fields: (5 points)
(Restaurant Id: make up your own unique identification number for each restaurant)
Field Name
Restaurant Id Number
Name of Restaurant
Address
City
State
Zip Code
Phone Number
Food Type
Average Price
Environment
Breakfast?
Lunch?
Dinner
Charge?
Reservation?
Take-Out?
Data type
Text
Text
Text
Text
Text
Text
Text
Text
Currency
Text
Yes/No
Yes/No
Yes/No
Yes/No
Yes/No
Yes/No
Field size
4
30
30
10
2
5
10
10
15
Description
Restaurant Id Number (Primary Key)
Restaurant Name
Street Address
City Location
State Abbreviation
Zip code
Phone number of restaurant
Type of food
Average price of and Entrée (Dinner)
fast-food, casual, fine-dinning
Are they open for breakfast?
Are they open for lunch?
Are they open for dinner?
Do they accept charge cards?
Do they accept reservations?
Is take-out available?
Find 20 Hawaii restaurants and enter their information into the “Restaurant Information” table. There should be
20 unique records in the “Restaurant Information” table.
Create and save the following queries in the “Hawaii Restaurants” database according to the
specifications below. All queries must have at least 2 results.
1. “Restaurant Listing” – include all of the following information in this query. (2 points)
Restaurant Id Number - Name of Restaurant – City – Food Type – Environment – Average Price –
Reservation? – Charge? – Breakfast? – Lunch? – Dinner?
2. “Restaurants over $15” – include all of the following information in this query. (1 point)
Name of Restaurant – Phone Number - City - Food type – Environment – Average Price
Criteria
• “Average Price” over $15 (1 point)
•
Sort ascending by “Average Price” (1 point)
3. “Restaurant Locations” – include all of the following information in this query. (1 point)
Name of Restaurant – City – Food Type – Environment – Reservations – Breakfast? – Lunch? – Dinner?
Criteria
• Select 2 cities where restaurants in your database are located. Query the database for only
restaurants from those two locations. (1 point)
• Sort descending by “Name of Restaurant” (1 point)
4. “Casual Restaurants under $10” – include all of the following information in this query. (1 point)
Name – Food type – Environment – Take out? – Average Price
Criteria
• Query the database for only casual restaurants with an “Average Price” under $10. (1 point)
5. “Restaurants within a City” – Include all of the following information in this query. (1 point)
Name of Restaurant – Address - City – Phone Number – Food Type – Average Price
Criteria
• Query the database for all restaurants within one city. (1 point)
6. “Restaurants that accept charge cards” – Include all of the following information in this query.
Name of Restaurant – Price – Food Type – Dinner? – Charge? (1 point)
Criteria
• Query the database for only restaurants that accept charge cards. (1 point)
• Make the “Charge?” criteria hidden (not shown in query results). (1 point)
7. “Average Price for one food type” – include all of the following information in this query. (1 point)
Food Type – Average Prices
Criteria
• Query the database for average prices for one particular food type. (1 point)
8. “Average Prices for all food types” – include all of the following information in this query. (1 point)
Food Type – Average Prices
Criteria
• Query the database for average prices for each food type. (1 point)
9. “Location of Restaurants in Database” – include all of the following information in this query. (1 point)
City
Criteria
• Query the database for the city locations of all restaurants. (1 point)
• Omit Duplicates in results. (1 point)
Things to turn in:
1. Database file in the folder “Q:/Period _ Hawaii restaurants” as “Restaurants Hawaii – Your
full name” by the designated due date.
2. Write-up: list the criteria used for each query. Write-up must be turned in by designated due
date. (e.g. Query 10: This query contains casual restaurants with average prices of dinner entrees
over $15.) (8 points)
-1 point for each keying error
Related documents