Advanced Access queries using Totals!
It's time to try designing some advanced queries in Access! So far, the queries we've been writing (both in class and in Assignment 2), have ranged from basic (just listing certain data from a table) to intermediate queries where we restrict the data using conditions or parameters. For example, try creating the following queries in your new Police Fines database:
- Basic: List the driver, fine, location, reporting officer and date for all fines in the database.
- Intermediate: Limit the above query by only returning incidents that have occured since 1/4/05
- Something new: Modify your query so that it only returns incidents from the last 30 days (you will need to use the Now() function!)
- A count of the number of fines recorded in each location (qryFinesByLocation).
- A count of the number of fines recorded by each officer (qryFinesByOfficer).
- The maximum single fine (dollar value) reported by each officer (qryMaxFinesByOfficer)
- A total of the fines reported by each officer (we always knew this was a money making scheme right ;-) (qrySumFinesByOfficer)
- A total of the fines reported by each officer since 1/4/05 (qrySumFinesApril)
- A total of the fines reported by each officer in the last 30 days (qrySumFines30days).
- (V. Hard) A list of officers who haven't reported any fines since 1/4/05 (qryNoFinesApril).
- A list of officers who haven't reported any fines in the last 30 days!
0 Comments:
Post a Comment
<< Home