Assignment Files
Submissions
You must submit your completed file(s) through the CS101 Submit Assignments tool.
Due Date
This assignment is due on Thursday, March 13, 2025. For on-campus sections, it is due by the end of class. For online sections, it is due by 11:59:59 PM Eastern Time. Late work will not be accepted.
Grades
This assignment is worth 8 points. A grading rubric is provided at the end of the assignment instructions. Over the entire semester, students must complete at least 20 Participation Projects to earn a maximum of 160 points.
Help & Resources
Video
This video is also available on YouTube [1].
Assignment Notes
Step 3a
To create a query in Microsoft Access that displays information about each school, including the School Name, County, and whether it is Closed, follow these steps:
Creating Query 3a to View School Information
- Open Microsoft Access
- Ensure your database is open.
- Go to the Query Design View
- Click on the Create
- Select Query Design.
- Add the Schools Table
- In the Show Table window, select Schools.
- Click Add, then Close.
- Select the Fields to Include
- From the Schools table, double-click the following fields to add them to the query grid:
- School Name
- County
- Closed as of 2020-2021
- From the Schools table, double-click the following fields to add them to the query grid:
- Run the Query
- Click the Run button (red exclamation mark) in the toolbar.
- The results will show each school’s name, county, and whether it is closed.
- Save the Query as Query 3a
- Click File > Save As.
- Name the query Query 3a.
- Click OK.
Now, the query Query 3a will be stored in your database and can be accessed whenever needed. Let me know if you need any adjustments!
Step 3b
Creating Query 3b to View Annual District Statistics
- Open Microsoft Access
- Ensure your database is open.
- Go to the Query Design View
- Click on the Create
- Select Query Design.
- Add the District Statistics Table
- In the Show Table window, select District Statistics.
- Click Add, then Close.
- Select the Fields to Include
- From the District Statistics table, double-click the following fields to add them to the query grid:
- School Year
- District
- Dropout Rate
- From the District Statistics table, double-click the following fields to add them to the query grid:
- Sort by School Year
- In the query design grid, locate the School Year
- Under the Sort row, select Ascending.
- Run the Query
- Click the Run button (red exclamation mark) in the toolbar.
- The results will show each school year, district, and dropout rate, sorted by School Year in ascending order.
- Save the Query as Query 3b
- Click File > Save As.
- Name the query Query 3b.
- Click OK.
Now, Query 3b will be stored in your database and can be accessed whenever needed. Let me know if you need any modifications!
Step 3c
Creating Query 3c to View School Proficiency Rates
- Open Microsoft Access
- Ensure your database is open.
- Go to the Query Design View
- Click on the Create
- Select Query Design.
- Add the Necessary Tables
- In the Show Table window, select the following tables:
- Schools
- Districts
- School Statistics
- Click Add, then Close.
- In the Show Table window, select the following tables:
- Select the Fields to Include
- From the Schools table, double-click the following field:
- School Name
- From the Districts table, double-click the following field:
- Region
- From the School Statistics table, double-click the following fields:
- School Year
- Students Tested
- Math Proficiency
- Reading Proficiency
- From the Schools table, double-click the following field:
- Sort the Query Results
- In the query design grid, locate the School Name
- Under the Sort row, select Ascending.
- Locate the School Year
- Under the Sort row, select Ascending.
- Run the Query
- Click the Run button (red exclamation mark) in the toolbar.
- The results will show each school's name, region, school year, number of students tested, math proficiency rate, and reading proficiency rate, sorted by School Name and then by School Year in ascending order.
- Save the Query as Query 3c
- Click File > Save As.
- Name the query Query 3c.
- Click OK.
Now, Query 3c will be stored in your database and can be accessed whenever needed.
Step 3d
Creating Query 3d Using SQL in Microsoft Access
To create Query 3d, you will need to use SQL (Structured Query Language) instead of the Query Design view. The SQL statement is provided in the assignment PDF, and you must follow these steps to copy and execute it in Microsoft Access:
Steps to Create Query 3d
- Open Microsoft Access
- Ensure your database is open.
- Go to the SQL View
- Click on the Create
- Select Query Design.
- Close the Show Table window (since we are writing SQL directly).
- Click on the SQL View button in the toolbar.
- Copy the SQL Statement from the Assignment PDF
- Open the assignment PDF provided to you.
- Locate the SQL statement for Query 3d.
- Highlight the entire SQL statement and copy it (Ctrl + C).
- Paste the SQL Statement into Access
- In SQL View, click inside the query editor and paste the copied SQL statement (Ctrl + V).
- Run the Query
- Click the Run button (red exclamation mark) in the toolbar.
- If the SQL statement is correct, the query will execute and display results.
- Save the Query as Query 3d
- Click File > Save As.
- Name the query Query 3d.
- Click OK.
Step 3e
Creating Query 3e Using SQL in Microsoft Access
To create Query 3e, you will need to use SQL (Structured Query Language) instead of the Query Design view. The SQL statement is provided in the assignment PDF, and you must follow these steps to copy, modify, and execute it in Microsoft Access:
Steps to Create Query 3e
- Open Microsoft Access
- Ensure your database is open.
- Go to the SQL View
- Click on the Create
- Select Query Design.
- Close the Show Table window (since we are writing SQL directly).
- Click on the SQL View button in the toolbar.
- Copy the SQL Statement from the Assignment PDF
- Open the assignment PDF provided to you.
- Locate the SQL statement for Query 3e.
- Highlight the entire SQL statement and copy it (Ctrl + C).
- Paste the SQL Statement into Access
- In SQL View, click inside the query editor and paste the copied SQL statement (Ctrl + V).
- Run the Query
- Click the Run button (red exclamation mark) in the toolbar.
- You will receive a prompt for a missing value.
- This occurs because the provided SQL statement references an invalid field name.
- Identify and Fix the Invalid Field Name
- Examine the SQL statement carefully to find any incorrect field names.
- Compare the field names used in the SQL statement with the actual field names in your tables.
- Modify the incorrect field name to match the correct field name in your database.
- Run the Corrected Query
- After making the necessary modifications, click Run
- The query should now execute correctly without prompting for a missing value.
- Save the Query as Query 3e
- Click File > Save As.
- Name the query Query 3e.
- Click OK.
Now, Query 3e is created using SQL and saved in your database. If you still encounter issues, review the field names carefully and ensure they match those in your database structure.
Let me know if you need further clarification!
Associated Learning Objectives
This assignment covers the following course and unit learning objectives:
Number | Learning Objective |
C02 | Design and construct databases to store, extract, and analyze scientific and real world data. |
C05 | Identify, access, and evaluate information to solve real world problems. |
C02.AC02 | Create and manage databases and their data. |
C02.AC04 | Design and construct queries to extract needed information from a database. |
C05.AC06 | Interpret and analyze database query results to perform calculations and answer questions. |
C05.ED01 | Locate and access data and resources necessary to solve problems. |
References
- B. M. Powell, Access: Queries I Participation Project. West Virginia University, 2021. Available: https://www.youtube.com/watch?v=5XJi9IecSog.