Introduction to Microsoft Access © Pearson Education Limited 1995, 2005... Summary of Microsoft Access Query Types © Pearson Education Limited 1995, 2005... Introduction to Microsoft Acc
Trang 1Chapter 7
Query-by-Example Transparencies
© Pearson Education Limited 1995, 2005
Trang 2Chapter 7 - Objectives
The main features of Query-By-Example (QBE).
The types of queries provided by the Microsoft
Access DBMS QBE facility.
How to use QBE to build queries to select fields
and records.
How to use QBE to target single or multiple tables.
© Pearson Education Limited 1995, 2005
Trang 3Chapter 7 - Objectives
How to perform calculations using QBE.
How to use advanced QBE facilities including parameter, find matched, find unmatched, crosstab, and autolookup queries.
How to use QBE action queries to change content of tables.
© Pearson Education Limited 1995, 2005
Trang 4Query-by-Example (QBE)
Visual approach for accessing information in a database through use of query templates.
Example values are entered into template to
represent what access to database is to achieve, such as the answer to a query
Originally developed by IBM in 1970s and has proved so popular that QBE (or similar) is now provided by most DBMSs.
When user constructs a QBE - in background, DBMS creates an equivalent SQL statement © Pearson Education Limited 1995, 2005
Trang 5Query-by-Example (QBE)
Allows user to:
- Ask questions about data in one or more tables.
- Specify the fields we want in the answer
- Select records according to some criteria.
- Perform calculations on the data in tables
- Insert and delete records.
- Modify values of fields.
- Create new fields and tables
© Pearson Education Limited 1995, 2005
Trang 6Introduction to Microsoft Access
© Pearson Education Limited 1995, 2005
Trang 7Summary of Microsoft Access Query Types
© Pearson Education Limited 1995, 2005
Trang 8Introduction to Microsoft Access Queries
© Pearson Education Limited 1995, 2005
Trang 12Creating Multi-table Queries
© Pearson Education Limited 1995, 2005
Trang 13Calculating Totals
© Pearson Education Limited 1995, 2005
Trang 14Calculating Totals
© Pearson Education Limited 1995, 2005
Trang 15Using Advanced Queries - Parameter Query
© Pearson Education Limited 1995, 2005
Trang 16Using Advanced Queries - Crosstab Query
© Pearson Education Limited 1995, 2005
Trang 17Using Advanced Queries - Crosstab Query
© Pearson Education Limited 1995, 2005
Trang 18Using Advanced Queries - Find Matched Query
© Pearson Education Limited 1995, 2005
Trang 19Using Advanced Queries - Find Unmatched Query
© Pearson Education Limited 1995, 2005
Trang 20Using Advanced Queries - Autolookup Query
© Pearson Education Limited 1995, 2005