A fast food joint keeps a database of menu items and calories.
A very smart database engineer realised that this design was inefficient. One of the fields - Other calories didn't need to be stored in the database. It could just be calculated when required. She designed a query to make this happen:
Most popular database applications have a totals button in the query builder menu bar - Σ. It often looks like a sigma (see above).
Download the csv file about Premier League Football in England.
Import the data into your database application. The Team field can be the Primary key.
Follow these instructions carefully:
Be smart! Download the file and save it in a new project folder. Don't leave it in the downloads folder of your computer. You are not a newbie!
Design-Test-Redesign the following queries. Save them with the name provided eg qryAverage
Hint! Your queries should produce the same number of records as indicated.
| qryNegativeGD | this query selects all records in the database that have a negative Goal difference. |
| qryNotUnited | this query selects all records but not teams that have United in their name. Hint: not is another magic word in database technology. Can you figure out how to use it? |
You should now have 3 queries saved in your database application.
In your evidence document, paste a screenshot of each of your 3 saved queries in Design View. Write 3 things that you now know about queries.
Database engineers are constantly thinking of new ways to use memory efficiently. Computer memory is not free and efficiency reduces costs. Calculated fields allow only necessary data to be stored permanently and when a user interacts with the database, any fields relying on calculations can be displayed.
database sigma querycriteriaimport evidence table integer screenshot record text ascending field double descending data type Yes/No