Microsoft Access 2016 Design and Implement Powerful Relational Databases Chapter 6.

Slides:



Advertisements
Similar presentations
Exploring Microsoft Access 2003 Chapter 5 One-to-Many Relationships : Subforms and Multiple Table Queries.
Advertisements

Copyright © 2008 Pearson Prentice Hall. All rights reserved.1 1 Committed to Shaping the Next Generation of IT Experts. Chapter 2.1: Relational Databases.
Access Manual 4 By Elham S.Khorasani Ismail Guneydas Dhawala Kovuri.
MS-Access XP Lesson 2. Input Mask Property 1.Field : Phone No Data Type : Number Input Mask : Character 0 represent a single digit and phone.
Exploring Microsoft Access 2003 Chapter 6 Many-to-Many Relationships: A More Complex System.
COMPREHENSIVE Access Tutorial 2 Building a Database and Defining Table Relationships.
FIRST COURSE Access Tutorial 2 Building a Database and Defining Table Relationships.
Define Table Relationships—1 of 3 One of the most powerful features of a relational database management system, such as Access, is its ability to define.
Tutorial 1 Creating a Database. Objectives Learn basic database concepts and terms Learn basic database concepts and terms Explore the Microsoft Access.
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall 1 1. Chapter 2: Relational Databases and Multi-Table Queries Exploring Microsoft Office.
1 Chapter 1: Finding Your Way Through a Database Exploring Microsoft Office Access 2010.
Access Tutorial 2 Building a Database and Defining Table Relationships
® Microsoft Office 2013 Access Building a Database and Defining Table Relationships.
Exploring Microsoft Access Chapter 4 Relational Databases, External Data, Charts, and the Switchboard.
Microsoft Access 2003 Define some key Access terminology: Field – A single characteristic or attribute of a person, place, object, event, or idea. Record.
® Microsoft Access 2010 Tutorial 1 Creating a Database.
1Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall. Exploring Microsoft Access 2010 by Robert Grauer, Keith Mast, Mary Anne Poatsy Chapter.
® Microsoft Office 2010 Access Tutorial 2 Building a Database and Defining Table Relationships.
® Microsoft Access 2010 Tutorial 2 Building a Database and Defining Table Relationships.
Chapter 17 Creating a Database.
® Microsoft Office 2010 Building a Database and Defining Table Relationships.
Microsoft Access Intro Class 6 Relationships.
1 Chapter 1: Finding Your Way Through a Database Exploring Microsoft Office Access 2007.
Microsoft Access 2013 Design and Implement Powerful Relational Databases Chapter 6.
Exploring Microsoft Access Chapter 6 Many-to-Many Relationships: A More Complex System.
Microsoft Office 2013: In Practice Chapter 2 Using Design View, Data Validation, and Relationships Copyright © 2014 by The McGraw-Hill Companies, Inc.
Access Chapter 1: Intro to Access Objectives Navigate among objects in Access database Difference between working in storage and memory Good database file.
1 CHƯƠNG 4 Creating Relational Databases Understanding Table Relationships Example: This database tracks customers and their orders in two separate.
Exploring Office Grauer and Barber 1 One-to-Many Relationships: Subforms and Multiple-Table Queries(Wk7)
MSOffice Access Microsoft® Office 2010: Illustrated Introductory 1 Part 1 ® Database & Table.
Exploring Microsoft Access Chapter 5 One-to-Many Relationships: Subforms and Multiple Table Queries.
Homework 4 Hints. Chapter 6 Guided Exercise Make sure to enforce Referential Integrity and Cascade Update when prompted Step 4 – Make sure to add a record.
1 Finding Your Way Through a Database Exploring Microsoft Office Access.
Access Tutorial 2 Building a Database and Defining Table Relationships
Tutorial 1 Creating a Database
Tables & Relationships
Microsoft Access 2016 Build User-Friendly Database Systems
Access Tutorial 1 Creating a Database
Exploring Microsoft Office Access 2007
Practical Office 2007 Chapter 10
Exploring Microsoft Access 2003
Objectives Create an action query to create a table
CIS 155 Table Relationship
Access Creating a Database
Exploring Microsoft Office Access
Chapter 4 MS ACCESS DATABASE.
Access Creating a Database
Microsoft Access 2003 Illustrated Complete
Design and Implement Powerful Relational Databases Chapter 6
Exploring Microsoft Office Access 2007
Exploring Microsoft Office Access 2007
Microsoft Office Access 2003
Access Tutorial 1 Creating a Database
Tutorial 3 – Querying a Database
Exploring Microsoft Access 2003
Access Lesson 2 Creating a Database
Microsoft Office Access 2003
Access: Access Basics Participation Project
Chapter 1 Databases and Database Objects: An Introduction
Access Tutorial 2 Building a Database and Defining Table Relationships
Access Tutorial 2 Building a Database and Defining Table Relationships
Access Tutorial 1 Creating a Database
Exploring Microsoft Access 2003
Microsoft Access Validation Rules, Table Relationships And
Access Tutorial 1 Creating a Database
Access Test Questions Test Date: 05/05/16.
Exploring Microsoft Office Access
Tutorial 9 Using Action Queries and Advanced Table Relationships
Relationships While we are on the subject of Relationships, let’s take a quick look at them.
Presentation transcript:

Microsoft Access 2016 Design and Implement Powerful Relational Databases Chapter 6

Chapter Overview Database Relationships Subforms Referential Integrity Cascade Update and Delete Subforms Helpful Access Utilities

Database Relationships Tables should be related on primary and foreign keys with similar data and compatible data types. Set relationships BEFORE entering data in the tables. Click Database Tools Ribbon, click Relationships button

Relationships Window

Compatible Data Types Primary Key Foreign Key Short Text 1---∞ __________ Number 1---∞ __________ Date 1---∞ __________ AutoNumber 1---∞ __________

Errors in Relationships Caused by one of three things: 1) Primary and/or foreign keys aren’t set properly in the table design 2) Data already exists in table(s) that violates referential integrity 3) Data types of related fields are incompatible or incorrect

Relationship Options Referential Integrity - Ensures that related records in a database are consistent. Generally a good idea to enforce this option. When enforced, relationship line indicates 1 and ∞. Cascade Update & Cascade Delete

Relationships Example

Subforms

Subforms A form within a form Displays data on one form from related tables Can have subforms within subforms (nested) and multiple subforms on a single form

Subforms Example

Access Utilities Compact & Repair Database – shrinks size of database. Access database files NEVER decrease in size unless compacted. Should do this before emailing a database file. Click File Menu, Compact & Repair Database Button

External Data Can be used to import data from other files (Excel, text) or link existing database tables. ODBC link allows you to connect to non-Access databases such as Oracle.

Quick Review Which is the appropriate pairing for setting relationships? a. Short Text PK – Hyperlink FK b. AutoNumber PK – Number FK c. Date PK – Short Text FK d. None of the above

Quick Review A 1---∞ relationship exists between Physicians and Patients. Which is True? a. Physician ID will appear in the Patients table b. Patient ID will appear in the Physicians table c. Both (a) or (b) d. Neither (a) or (b)

Quick Review Which of the following will remove the relationship between tables? a. Click the join line connecting the two tables and press the Del key b. Double click the join line c. Click the join field and press Del d. All of the above

Quick Review Every table in an Access database a. Must be related to every other table b. Must have one or more foreign keys c. Both (a) and (b) d. Neither (a) nor (b)

Quick Review Which of the following is true? a. A main form may contain multiple subforms b. A subform may contain another subform c. Both (a) and (b) d. Neither (a) nor (b)

Quick Review True / False When creating relationships between tables in Access, you must relate the tables on fields with the same data types.

Homework 4 Chapter 6 Guided Exercise Chapter 6 Applied Exercise