Queries are questions asked of a database to help you find database information quickly. In this project, you will create a database with grocery store data and use the standard filter, query wizard, and operators to find information.

Objectives
Create a database using database software.
Use filters, queries, and operators to find database information.
Directions
Part 1: Use the following information to create a database.

Product Name Unit Price Average Price Lowest Price Highest Price
Hulls ketchup 1.56 1.45 1.40 1.56
Windy Wheat bread 1.78 1.73 1.70 1.78
Grapes 2.65 2.61 2.60 2.68
Smith jelly 4.21 4.20 4.18 4.21
Baldelli spaghetti 1.75 1.70 1.68 1.80
Jersey cream cheese 3.90 3.81 3.75 3.90
Cloud 2% milk 5.20 5.00 4.80 5.25
Ballotti Olive Oil 9.50 9.22 9.10 9.50
Granny's apple sauce 2.20 2.17 2.15 2.20
Cloud cottage cheese 4.56 4.53 4.48 4.56
Mendunster cheese 6.12 6.11 6.10 6.15
Hulls mustard 1.53 1.45 1.40 1.56
Windy rye bread 1.72 1.73 1.70 1.80
Bananas 2.63 2.65 2.60 2.68
Smith peanut butter 4.19 4.20 4.18 4.21
Baldelli noodles 1.74 1.75 1.68 1.80
Paris Parmesan Cheese 3.80 3.81 3.80 3.95
Cloud 1% milk 4.99 5.00 4.80 5.25
Mit Apple Juice 4.15 4.22 4.10 4.50
Graham's Gravy 2.16 2.17 2.15 2.20
Silver Crackers 2.51 2.53 2.48 2.56
Silver Chips 2.10 2.11 2.10 2.15
Part 2: Answer the following questions by running queries on the information in the database.

Question # 1
Multiple Choice
How many products are priced above average?

Responses

10
10

22
22

12
12

18
18
Question # 2
Multiple Choice
How many products cost less than five dollars?

Responses

10
10

12
12

22
22

19
19
Question # 3
Multiple Choice
For how many products does this grocery store have the highest price?

Responses

12
12

7
7

2
2

22
22
Question # 4
Multiple Choice
For how many products does this grocery store have the lowest price?

Responses

7
7

12
12

22
22

2
2
Question # 5
Long Text (essay)
Explain the purpose of comparison operators and list the operators needed to complete this project. Submit your work below.Queries are questions asked of a database to help you find database information quickly. In this project, you will create a database with grocery store data and use the standard filter, query wizard, and operators to find information.

Objectives
Create a database using database software.
Use filters, queries, and operators to find database information.
Directions
Part 1: Use the following information to create a database.

Product Name Unit Price Average Price Lowest Price Highest Price
Hulls ketchup 1.56 1.45 1.40 1.56
Windy Wheat bread 1.78 1.73 1.70 1.78
Grapes 2.65 2.61 2.60 2.68
Smith jelly 4.21 4.20 4.18 4.21
Baldelli spaghetti 1.75 1.70 1.68 1.80
Jersey cream cheese 3.90 3.81 3.75 3.90
Cloud 2% milk 5.20 5.00 4.80 5.25
Ballotti Olive Oil 9.50 9.22 9.10 9.50
Granny's apple sauce 2.20 2.17 2.15 2.20
Cloud cottage cheese 4.56 4.53 4.48 4.56
Mendunster cheese 6.12 6.11 6.10 6.15
Hulls mustard 1.53 1.45 1.40 1.56
Windy rye bread 1.72 1.73 1.70 1.80
Bananas 2.63 2.65 2.60 2.68
Smith peanut butter 4.19 4.20 4.18 4.21
Baldelli noodles 1.74 1.75 1.68 1.80
Paris Parmesan Cheese 3.80 3.81 3.80 3.95
Cloud 1% milk 4.99 5.00 4.80 5.25
Mit Apple Juice 4.15 4.22 4.10 4.50
Graham's Gravy 2.16 2.17 2.15 2.20
Silver Crackers 2.51 2.53 2.48 2.56
Silver Chips 2.10 2.11 2.10 2.15
Part 2: Answer the following questions by running queries on the information in the database.

Question # 1
Multiple Choice
How many products are priced above average?

Responses

10
10

22
22

12
12

18
18
Question # 2
Multiple Choice
How many products cost less than five dollars?

Responses

10
10

12
12

22
22

19
19
Question # 3
Multiple Choice
For how many products does this grocery store have the highest price?

Responses

12
12

7
7

2
2

22
22
Question # 4
Multiple Choice
For how many products does this grocery store have the lowest price?

Responses

7
7

12
12

22
22

2
2
Question # 5
Long Text (essay)
Explain the purpose of comparison operators and list the operators needed to complete this project. Submit your work below.

1 answer

Part 1: Creating the Database

To create the database, the given data can be entered into a spreadsheet or database software (such as Microsoft Access, MySQL, etc.). Below is how the database structure would look:

Table Structure: Grocery_Products

| Product Name | Unit Price | Average Price | Lowest Price | Highest Price | |-------------------------|------------|---------------|--------------|----------------| | Hulls ketchup | 1.56 | 1.45 | 1.40 | 1.56 | | Windy Wheat bread | 1.78 | 1.73 | 1.70 | 1.78 | | Grapes | 2.65 | 2.61 | 2.60 | 2.68 | | Smith jelly | 4.21 | 4.20 | 4.18 | 4.21 | | Baldelli spaghetti | 1.75 | 1.70 | 1.68 | 1.80 | | Jersey cream cheese | 3.90 | 3.81 | 3.75 | 3.90 | | Cloud 2% milk | 5.20 | 5.00 | 4.80 | 5.25 | | Ballotti Olive Oil | 9.50 | 9.22 | 9.10 | 9.50 | | Granny's apple sauce | 2.20 | 2.17 | 2.15 | 2.20 | | Cloud cottage cheese | 4.56 | 4.53 | 4.48 | 4.56 | | Mendunster cheese | 6.12 | 6.11 | 6.10 | 6.15 | | Hulls mustard | 1.53 | 1.45 | 1.40 | 1.56 | | Windy rye bread | 1.72 | 1.73 | 1.70 | 1.80 | | Bananas | 2.63 | 2.65 | 2.60 | 2.68 | | Smith peanut butter | 4.19 | 4.20 | 4.18 | 4.21 | | Baldelli noodles | 1.74 | 1.75 | 1.68 | 1.80 | | Paris Parmesan Cheese | 3.80 | 3.81 | 3.80 | 3.95 | | Cloud 1% milk | 4.99 | 5.00 | 4.80 | 5.25 | | Mit Apple Juice | 4.15 | 4.22 | 4.10 | 4.50 | | Graham's Gravy | 2.16 | 2.17 | 2.15 | 2.20 | | Silver Crackers | 2.51 | 2.53 | 2.48 | 2.56 | | Silver Chips | 2.10 | 2.11 | 2.10 | 2.15 |

Part 2: Answers to Questions

Question 1: How many products are priced above average?

  • Average Price Calculation: To find the average price, sum all the Unit Prices and divide by the number of products. The average price here would be around $3.31.
  • Query Result: Based on the data provided, 12 products are priced above the average price.

Response: 12


Question 2: How many products cost less than five dollars?

  • Query Result: Count the number of products with a Unit Price less than $5.
  • Based on the data, 12 products fall into this category.

Response: 12


Question 3: For how many products does this grocery store have the highest price?

  • Query Result: Check for the highest price for each product against the Unit Price. Products priced at their highest price show there are 7 instances.

Response: 7


Question 4: For how many products does this grocery store have the lowest price?

  • Query Result: Similarly, count the number of products where the Unit Price is the lowest price listed. There would be 2 products.

Response: 2


Question 5: Explain the purpose of comparison operators and list the operators needed to complete this project.

Purpose of Comparison Operators:
Comparison operators are used to compare two values or expressions. They are essential in database querying as they allow for the filtering of data based on specific criteria. For instance, you may want to find products within a certain price range, those above or below a certain average, or determine if a product's price ties with its highest or lowest value.

Comparison Operators Needed:

  • Greater than (>): Used to find values greater than a specified amount (e.g., find products over a certain price).
  • Less than (<): To find values less than a specified amount (e.g., for products below $5).
  • Equal to (=): To find exact matches (e.g., highest priced products).
  • Not equal to (<>): Used to find values that do not match a specified amount.
  • Greater than or equal to (>=): To find values that are either greater than or equal to a specified amount.
  • Less than or equal to (<=): To find values that are either less than or equal to a specified amount.

These operators are crucial for constructing meaningful queries and extracting relevant information from a database efficiently.

Similar Questions
  1. If any of you are from Connections Academy, I would love your help :)1: All of this information is part of a ___ in a database.
    1. answers icon 30 answers
  2. UNIT 4 lesson 4All of this information is part of a ___ in a database. a. record b. row c. column d. field What other
    1. answers icon 74 answers
  3. The field names in a database are also known asA. category or column heading ** B. The name of a row C. Individual cells in a
    1. answers icon 5 answers
  4. 2 of 5 2 of 5 ItemsQuestion In which career field would a person write the code for a digital music manager? (1 point) Responses
    1. answers icon 9 answers
more similar questions