A query links data tables , retreives
records based upon specified criteria, and averages them in various
ways. The source data tables are not modified in this
process.
This sheet describes queries distributed with the
database. Most are intended as examples or templates. The format and
record selection criteria within these queries may be modified to a limited
extent by the user. Modification of some queries (in particular, master,
master_filtered, or master_filtered_daily) may affect linkage to the excel
applications, however. New queries can be added by access
programmers.
Supporting excel
workbooks (queries.xls and pivot_tables.xls
) facilitate retrieval and analysis of query output for users
familiar with excel (in particular, excel pivot tables).
Query Categories
Queries are named in three categories:
Master Query
The master query links all tables in the database
(except for field, buoy, & flow data). It also serves as a data source
for many of the other queries that further screen or summarize it. Each
record contains one analytical result and all sample descriptors, comments, and
flags (~500,000 records)
A number of calculated fields are added to facilitate
analysis of the data:
Master_Filtered Query
The master_filtered query screens the master_query output based upon the following
criteria:
This query has been designed to support the data summaries, load calculations, and trend analyses typically performed in perparing yearly lake monitoring reports. It also supplies data to the time series & load calculation workbooks, as well as to other queries.
Master_Filtered_Daily Query
This query
averages the master_filtered results by day for a give site, parameter, date, depth,
and qaqc code. It supplies data to the pivot_tables
workbook.
Master_Filtered_Crosstab
Query
Transforms master_filtered
query output into conventional spreadsheet format (rows = samples, columns =
parameters). Unlike most of the others, output from this query
fits readily into an excel worksheet. A current copy of this
query can be obtained in the queries.xls workbook.
Check
Queries
'Check..'
queries verify table
linkages. Each is designed to retrieve no records if the tables are
properly linked and the required linking variables
are defined. These
should be examined after updating the database.
Query.xls facilitates this process. Edit access tables & repeat until no
records are listed in the "Check_" sheets .