chapter07 qbe examples
TRANSCRIPT
-
8/3/2019 Chapter07 QBE Examples
1/27
Chapter 7 - Database Principles
Query-by-Example
-
8/3/2019 Chapter07 QBE Examples
2/27
2
Chapter 7 - Objectives
x The main features of Query-By-Example (QBE).
x The types of queries provided by the Microsoft
Access DBMS QBE facility.
x How to use QBE to build queries to select fields
and records.
x How to use QBE to target single or multiple tables.
-
8/3/2019 Chapter07 QBE Examples
3/27
3
Chapter 7 - Objectives
x How to perform calculations using QBE.
x How to use advanced QBE facilities including
parameter, find matched, find unmatched,
crosstab, and autolookup queries.
x How to use QBE action queries to changecontent of tables.
-
8/3/2019 Chapter07 QBE Examples
4/27
4
Query-by-Example (QBE)
x Visual approach for accessing information in adatabase through use of query templates.
x Example values are entered into template torepresent what access to database is to achieve,such as the answer to a query.
x Originally developed by IBM in 1970s and hasproved so popular that QBE (or similar) is nowprovided by most DBMSs.
x When user constructs a BE - in back round
-
8/3/2019 Chapter07 QBE Examples
5/27
5
Query-by-Example (QBE)
x 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.
-
8/3/2019 Chapter07 QBE Examples
6/27
6
Introduction to Microsoft Access
-
8/3/2019 Chapter07 QBE Examples
7/27
7
Summary of Microsoft Access Query Types
-
8/3/2019 Chapter07 QBE Examples
8/27
8
Introduction to Microsoft Access QueriesQueries
-
8/3/2019 Chapter07 QBE Examples
9/27
9
Building Select Queries using QBE -
Specifying Criteria (Demo- SQL View)
-
8/3/2019 Chapter07 QBE Examples
10/27
10
Building Select Queries using QBE -
Specifying Criteria
-
8/3/2019 Chapter07 QBE Examples
11/27
11
Building Select Queries using QBE -
Specifying Criteria
-
8/3/2019 Chapter07 QBE Examples
12/27
12
Creating Multi-table Queries (p. 159)
-
8/3/2019 Chapter07 QBE Examples
13/27
13
Calculating Totals
-
8/3/2019 Chapter07 QBE Examples
14/27
14
Calculating Totals (p. 161)
-
8/3/2019 Chapter07 QBE Examples
15/27
15
Using Advanced Queries - Parameter Query
-
8/3/2019 Chapter07 QBE Examples
16/27
16
Using Advanced Queries - Crosstab Query
-
8/3/2019 Chapter07 QBE Examples
17/27
17
Using Advanced Queries - Crosstab Query
-
8/3/2019 Chapter07 QBE Examples
18/27
18
Using Advanced Queries - Find Matched Query
-
8/3/2019 Chapter07 QBE Examples
19/27
19
Using Advanced Queries - Find Unmatched Query
-
8/3/2019 Chapter07 QBE Examples
20/27
20
Using Advanced Queries - Autolookup Query
-
8/3/2019 Chapter07 QBE Examples
21/27
21
Changing Content of Tables - Make-Table
Action Query
-
8/3/2019 Chapter07 QBE Examples
22/27
22
Changing Content of Tables - Delete Action
Query
-
8/3/2019 Chapter07 QBE Examples
23/27
23
Changing Content of Tables - Update
Action Query
-
8/3/2019 Chapter07 QBE Examples
24/27
24
Changing Content of Tables - Append
Action Query
-
8/3/2019 Chapter07 QBE Examples
25/27
25
Changing Content of Tables - Append
Action Query
-
8/3/2019 Chapter07 QBE Examples
26/27
26
Summary
x The main features of Query-By-Example (QBE).
x The types of queries provided by the Microsoft
Access DBMS QBE facility.
x How to use QBE to build queries to select fieldsand records.
x How to use QBE to target single or multiple tables.
-
8/3/2019 Chapter07 QBE Examples
27/27
27
Summary
x How to perform calculations using QBE.
x How to use advanced QBE facilities including
parameter, find matched, find unmatched,
crosstab, and autolookup queries.
x How to use QBE action queries to changecontent of tables.