LAB #10
CSC 101
Introduction to Databases
R Mohammadi
November1998
Objectives:
Using Microsoft Access, learn to...
Create a query with calculated fields.
Filter data with a query.
Develop a report.
Sort records.
About this lab...
Its is assumed that you have already done lab9 and created the lab9 database on your disk. We will learn to take advantage of the power of databases in this lab. Two of the main features of Access are the ability to easily filter records based on a criteria and to create reports summarizing the information in our tables. So far, all you have learned is to keep some records, which you could have as easily done with a spreadsheet, hopefully, you'll learn much more in today's lab. Imagine that you have hundreds of records in your database. Finding an individual may be time consuming; being able to work with a subset of records that share a certain characteristic would also be imperative. Regardless of the size of a table, you may want a nice listing of its content with summary data. All of these capabilities exist in Access and we'll explore them here. Good luck.
1. Learn about queries, reports, and sorting with Microsoft Office Starts Here.
2. Starting Microsoft Access.
Start Microsoft Access by clicking on Start, clicking on Programs, and then clicking Microsoft
3. Open the lab9 database.
4. Database query.
Access lets us filter records as you saw in one of the lessons earlier; filtering is a form of database query that lets you select a subset of the record/rows in a table. You also saw how a Query is built with query wizard, but it was in the context of limiting the fields/columns that you see. Here we will use a query to introduce the concept of calculated field and we will reinforce the concept of filtering.
n. Close the Student_tot_avg: Select Query window.
5. Create a report.
We'll create a report on the on the Student_tot_avg query.
6. Close the Access window and logout.
Close your Access window and logout of the workstation. No need to save anything, the query and report were already saved in the lab9 database.