Presentation is loading. Please wait.

Presentation is loading. Please wait.

Access Chapter 3-Obtaining Answers to Your Data Questions.

Similar presentations


Presentation on theme: "Access Chapter 3-Obtaining Answers to Your Data Questions."— Presentation transcript:

1 Access Chapter 3-Obtaining Answers to Your Data Questions

2 PgP MIS 342 Access3-2 Table Relationships  Defining and using table relationships is the way to combine related data  One to many Unique record from one table can have zero, one or many related records in another table

3 PgP MIS 342 Access3-3 Table Relationships  Referential Integrity System of rules to ensure that relationships between records in related tables are valid Prevents accidental deletion of or change to related data Use cascade updates and or cascade deletes to allow automatic changes to related fields (is it good to use cascading? Depends on the situation)

4 PgP MIS 342 Access3-4 Querying Databases  Filters-datasheet tools to temporarily display set of records Filter by Selection Filter by Form Advanced Filter

5 PgP MIS 342 Access3-5 Querying Databases  Most common type- Select Query  Asks a question about the data stored in tables, only certain records meet the criteria and are selected

6 PgP MIS 342 Access3-6 Querying Databases  Query, Design View Query By Example (QBE) is the Access user interface that creates SQL statements  Query, Datasheet View The display of the returned records Can be different each time the query is run

7 PgP MIS 342 Access3-7 Querying Databases  Creating queries is one of the most important skills in any database program  Queries are the basis for forms and reports  Good form and report design is a result of starting with a good query design

8 PgP MIS 342 Access3-8 Querying Databases  Sorting, Ascending or Descending Up to 10 fields, done from left to right  Show check box- determines if field is displayed in datasheet Why needed? Set criteria for a field that you do not want displayed

9 PgP MIS 342 Access3-9 Querying Databases  Specifying Record Selection Criteria- learning to return just the records you need

10 PgP MIS 342 Access3-10 Querying Databases  Learn to formulate expressions, used in: Query criteria and calculated fields  And also: Table validation rules Form and report calculated controls VBA code SQL statements

11 PgP MIS 342 Access3-11 Querying Databases  Operators- key expression building tool Like, In, Between…And… =,, <>  Exact matches  Multiple criteria And-tends to return fewer records Or-tends to return more records

12 PgP MIS 342 Access3-12 Querying Databases  Calculated Fields-derivable quantities that should not be stored (why?) in underlying table, such as: ExtendedPrice: Quantity * Price Age: DateDiff("yyyy",[DateOfBirth],Date())  Expression Builder-useful tool  Zoom Box (Shift+F2)

13 PgP MIS 342 Access3-13 Querying Databases  Aggregate Functions-useful for gathering statistical information, watch “group by”

14 PgP MIS 342 Access3-14 Querying Databases  Group By-use in conjunction with aggregate functions or alone Consolidate records into groups based on chosen fields


Download ppt "Access Chapter 3-Obtaining Answers to Your Data Questions."

Similar presentations


Ads by Google