In this project you work with a greenhouse database. Improve the functionality of this database by creating a variety of queries and exporting the query results to both an Excel spreadsheet and a tab-delimited text file.
Skills needed to complete this project:
· Using the Simple Query Wizard (Skill 3.1)
· Creating a Query in Design View (Skill 3.2)
· Adding Text Criteria to a Query (Skill 3.3)
· Adding Numeric and Date Criteria to a Query (Skill 3.4)
· Using AND in a Query (Skill 3.5)
· Specifying the Sort Order in a Query (Skill 3.9)
· Exporting Data to Excel (Skill 3.16)
· Using OR in a Query (Skill 3.6)
· Combining AND and OR in a Query (Skill 3.7)
· Exporting Data to a Text File (Skill 3.17)
· Hiding and Showing Fields in a Query (Skill 3.10)
· Adding a Calculated Field to a Query (Skill 3.8)
· Finding Unmatched Data Using a Query (Skill 3.12)
· Using a Parameter Query (Skill 3.11)
· Filtering Data Using AutoFilter (Skill 3.14)
· Filtering Data Using Filter by Selection (Skill 3.15)
1. Open the start file AC2019-ChallengeYourself-3-3.
2. If the database opens in Protected View, click the Enable Content button in the Message Bar at the top of the database so you can modify it.
3. Create a new query named: GreenhouseTechsFT
a. Add all the fields from the Employees table.
b. The query should list all employees whose Position begins with the word greenhouse and whose weekly hours are greater than or equal to 20. Hint: Include a wildcard character in the criterion for the Position field.
c. Modify the query design so results are sorted alphabetically by last name.
d. Add the MaintenanceLog table to this query and include the MaintenanceDate field after the WeeklyHours field.
e. Run the query to review the results. There should be 16 records in the results.
f. Save and close the query.
4. Export the GreenhouseTechsFT query to an Excel spreadsheet.
a. Name the Excel file: GreenhouseTechsFT
b. Include formatting and layout.
c. Save the export steps with the name: GreenhouseTechsFTExport
5. Create a new query named: NewPlants.
a. Add all the fields from the Plants table except ScientificName.
b. The query should list all white or blue colored plants whose DatePlanted is greater than or equal to 1/1/2019.
c. Modify the query design so results are sorted by values in the DatePlanted field with the newest plants listed first.
d. Run the query to review the results. There should be three records in the results.
e. Save and close the query.
6. Export the NewPlants query to a text file.
a. Name the text file: NewPlants
b. Use Tab as the delimiter.
c. Include the field names in the first row.
d. Save the export steps with the name: NewPlantsExport
7. Create a new query named: RedPlantSale
a. Add the following fields from the Plants table to the query: CommonName, PrimaryColor, PurchasePrice
b. Select only those plants with a red color, but don’t show this field in the query results.
c. Add a calculated field that displays a sale price that is 75 percent of the purchase price. Hint: Use an expression that calculates the value of the PurchasePrice field multiplied by 0.75. Use the name SalePrice for the new field.
d. Run the query to review the results. There should be five records in the results.
e. Save and close the query.
8. Use the Find Unmatched Query Wizard to create a new query that identifies the plants that have no entry in the MaintenanceLog.
a. Include all fields from the Plants table except the PlantID.
b. Name this query: PlantsMissingMaintenance
c. Review the query results. There should be 15 records in the results.
d. Close the query.
9. Create a new parameter query named: PlantsByColor
a. Add the following fields from the Plants table to the query: CommonName, PrimaryColor, DatePlanted, PurchasePrice
b. Configure the PrimaryColor field so the user is prompted to enter the primary plant color with this message: Enter plant color
c. Test the query using the color violet. There should be three records in the results.
d. Save and close the query.
10. Open the MaintenanceLog table. Apply a filter that shows only those plants that have been watered and pruned. Close the table. There should be one record in the results.
11. Close the database and exit Access.
12. Upload and save your project file.
13. Submit project for grading.
Reset Progress Back to top
FOLLOW MCGRAW HILL