Exploring Microsoft Access Chapter 6 Many-to-Many Relationships: A More Complex System.

Slides:



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

Access Manual 4 By Elham S.Khorasani Ismail Guneydas Dhawala Kovuri.
Exploring Microsoft Access
Pasewark & Pasewark Microsoft Office XP: Introductory Course 1 INTRODUCTORY MICROSOFT ACCESS Lesson 4 – Finding and Ordering Data.
Access Lesson 2 Creating a Database
Exploring Microsoft Access 2003 Chapter 6 Many-to-Many Relationships: A More Complex System.
Copyright © 2008 Pearson Prentice Hall. All rights reserved. 1 1 Committed to Shaping the Next Generation of IT Experts. Chapter 2: Relational Databases.
The University of Akron Dept of Business Technology Computer Information Systems The Relational Model: Query-By-Example (QBE) 2440: 180 Database Concepts.
Maintenance Modifying the data –Add records –Delete records –Update records Modifying the design –Add fields into tables –Remove fields from a table –Change.
XP New Perspectives on Microsoft Office Access 2003, Second Edition- Tutorial 3 1 Microsoft Office Access 2003 Tutorial 3 – Querying a Database.
XP Chapter 3 Succeeding in Business with Microsoft Office Access 2003: A Problem-Solving Approach 1 Analyzing Data For Effective Decision Making.
Committed to Shaping the Next Generation of IT Experts. Chapter 4- Proficiency: Robert Grauer and Maryann Barber Exploring Microsoft Access 2003.
FIS 318/618: Financial Systems & Databases Queries Oakland University School of Business Administration Accounting and Finance Joe Callaghan.
Querying a Database Microsoft Office Access 2003.
1 Chapter 2 Reviewing Tables and Queries. 2 Chapter Objectives Identify the steps required to develop an Access application Specify the characteristics.
Chapter Extension 6 Using Microsoft Access © 2008 Pearson Prentice Hall, Experiencing MIS, David Kroenke.
MELISSA PICO SUMMER 08 Data Storage & Retrieval: Access instead of Excel.
Microsoft Access 2013 Build User-Friendly Database Systems Chapter 7.
ACCESS CHAPTER 1. OBJECTIVES Tables Queries Forms Reports Primary and Foreign Keys Relationship.
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall 1 1. Chapter 2: Relational Databases and Multi-Table Queries Exploring Microsoft Office.
Concepts of Database Management, Fifth Edition
1 Microsoft Access 2002 Tutorial 3 – Querying a Database.
With Microsoft Office 2007 Intermediate© 2008 Pearson Prentice Hall1 PowerPoint Presentation to Accompany GO! with Microsoft ® Office 2007 Intermediate.
With Microsoft Access 2007 Volume 1© 2008 Pearson Prentice Hall1 PowerPoint Presentation to Accompany GO! with Microsoft ® Access 2007 Volume 1 Chapter.
Primary & Foreign Keys. PK & FK 1.Primary key is required 2.The PK must be unique 3.If the primary key from one table is related to a field in another.
Copyright © 2008 Pearson Prentice Hall. All rights reserved.1 1 Committed to Shaping the Next Generation of IT Experts. Chapter 2: Relational Databases.
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall 1 1 Committed to Shaping the Next Generation of IT Experts. Chapter 2: Relational.
With Microsoft Office 2007 Introductory© 2008 Pearson Prentice Hall1 PowerPoint Presentation to Accompany GO! with Microsoft ® Office 2007 Introductory.
DAY 15: ACCESS CHAPTER 2 Larry Reaves October 7,
CS&E 1111 AcInnerJoins Inner Joins Objectives: Creating Queries with data from Multiple Tables Joining two tables using an Inner Join Referential Data.
XP Chapter 2 Succeeding in Business with Microsoft Office Access 2003: A Problem-Solving Approach 1 Building The Database Chapter 2 “It is only the farmer.
1 Chapter 7 Query-By-Example by Monica Chan CS157B Professor Lee.
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.
Analyzing Data For Effective Decision Making Chapter 3.
IE 423 – Design of Decision Support Systems Database development – Relationships and Queries.
Exploring Microsoft Access 97 Chapter 1 Introduction to Microsoft Access: What Is A Database? Office graphic copyright by Microsoft Corp.
XP New Perspectives on Microsoft Office Access 2003 Tutorial 9 1 Microsoft Office Access 2003 Tutorial 9 – Using Action Queries, and Defining Table Relationships.
© 2008 The McGraw-Hill Companies, Inc. All rights reserved. ACCESS 2007 M I C R O S O F T ® THE PROFESSIONAL APPROACH S E R I E S Lesson 9 – Building Links,
1 Copyright © 2014 Pearson Education, Inc. Publishing as Prentice Hall. Access Module 1 Workshop 2 Tables, Keys, and Relationships Series Editor Amy Kinser.
Access Chapter 2: Relational Database Objectives Design data Create tables Understand table relationships Understand data types, key, & field properties.
Copyright © 2008 Pearson Prentice Hall. All rights reserved Committed to Shaping the Next Generation of IT Experts. Chapter 7 Advanced Queries Robert.
MS Access 2007 Management Information Systems 1. Overview 2  What is MS Access?  Access Terminology  Access Window  Database Window  Create New Database.
Access Project 3 Notes. Introduction Maintaining the Database  Modifying the data to keep it up-to-date Restructure the Database  To change the database.
Microsoft Access Intro Class 6 Relationships.
Part II. Query Types On the design query table pane, right click and the cascading window will appear.
XP Chapter 3 Succeeding in Business with Microsoft Office Access 2003: A Problem-Solving Approach 1 Analyzing Data For Effective Decision Making Chapter.
Microsoft Access 2013 Design and Implement Powerful Relational Databases Chapter 6.
Pasewark & Pasewark 1 Access Lesson 3 Creating Queries Microsoft Office 2007: Introductory.
Reports and Queries Chapter 3 – Access text Reports – Page Queries – Page
Microsoft Office 2013: In Practice Chapter 3 Creating and Using Queries Copyright © 2014 by The McGraw-Hill Companies, Inc. All rights reserved.McGraw-Hill/Irwin.
Microsoft Office 2013: In Practice Chapter 2 Using Design View, Data Validation, and Relationships Copyright © 2014 by The McGraw-Hill Companies, Inc.
Exploring Office Grauer and Barber 1 One-to-Many Relationships: Subforms and Multiple-Table Queries(Wk7)
Pasewark & Pasewark Microsoft Office 2003: Introductory 1 INTRODUCTORY MICROSOFT ACCESS Lesson 4 – Finding and Ordering Data.
XP New Perspectives on Microsoft Access 2002 Tutorial 31 Microsoft Access 2002 Tutorial 3 – Querying a Database.
© 2001 ComputerPREP, Inc. All rights reserved. Access 2000: Module II.
1Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall. Exploring Microsoft Office Access 2010 by Robert Grauer, Keith Mast, and Mary Anne.
MSOffice Access Microsoft® Office 2010: Illustrated Introductory 1 Part 1 ® Database & Table.
Chapter 4 Relational Database, Pivot Charts, and Switchboard.
Exploring Microsoft Access Chapter 5 One-to-Many Relationships: Subforms and Multiple Table Queries.
Microsoft Access Lesson 5 Lexington Technology Center February 25, 2003 Bob Herring On the Web at
Chapter 6 Many-to Many Relationship. Agenda AutoNumber Many-to-many relationship Cascaded updating and deleting Auto Lookup Parameter query Total query.
Copyright © 2009 Pearson Education, Inc. Publishing as Prentice Hall. 1 Skills for Success with Microsoft ® Office 2007 PowerPoint Lecture to Accompany.
1 11 Chapter 7 Action Queries Exploring Microsoft Office Access 2007.
XP Chapter 1 Succeeding in Business with Microsoft Office Access 2003: A Problem-Solving Approach 1 Level 2 Objectives: Understanding and Creating Table.
Microsoft Access 2016 Design and Implement Powerful Relational Databases Chapter 6.
CIS 155 Table Relationship
Design and Implement Powerful Relational Databases Chapter 6
Exploring Microsoft Access 2003
Lesson 3 Chapter 10.
Presentation transcript:

Exploring Microsoft Access Chapter 6 Many-to-Many Relationships: A More Complex System

Objectives (1 of 2) Define and explain a many-to-many relationship Use Cascade Update and Cascade Delete Explain how the AutoNumber field simplifies entering new records

Objectives (2 of 2) Create a main farm and subform based on a query Create a parameter query Use aggregate functions Use Get External Data command

Overview (1 of 2) More database design practice Extends relational database concepts including one-to-many and many-to-many relationships Use AutoNumber to simplify record creation

Overview (2 of 2) Extends subform and query information from related tables Create forms based on multiple-table queries Create a parameter query Create queries with built-in aggregate functions

Many-to-Many Relationships A many-to-many relationship requires an additional table that has a one-to-many relationship to each of the related tables The primary key of the additional table is the combination of the primary keys of the related tables

Implementing Many-To-Many Relationships Many-to-many relationship is implemented by a pair of one-to-many relationships Enforce Referential Integrity is selected Cascade Delete Related Records is selected

Referential Integrity Ensures records in related tables are consistent with one another Prevents adding a record to a related table with an invalid foreign key Prevents deleting a record in the primary table when there are corresponding records in the related table

Cascaded Deletion When a record in the primary table is deleted, Access simultaneously deletes the corresponding records in the related table

Cascaded Updating When the primary key in the primary table is updated, Access automatically updates the value in the corresponding records in the related table

Subforms, Queries, and AutoLookup Main and subforms based on queries: - display of information from multiple tables - display records other than by primary key AutoLookup will find corresponding data after unique ID is entered

Main Form and Subform Main form has fields from Orders and Customers tables Subform has fields from Order Details and Products tables

Designing a main and subform Main form Detail Subform Detail

Parameter Queries Prompts the user for criteria when executed The prompt is enclosed in square brackets in the query design grid A parameter query may prompt for any number of variables

Parameter Query Enter the prompt in square brackets in the Criteria field Users are prompted with a dialog box when the query is executed

Total Queries Total Queries perform calculations on a group of records Total row – Contains either Group by or aggregate entry Group By – Records in the dynaset are to be grouped according to the like values Sum Function – Specifies math to be performed on that field for each group of records

Adding Tables Existing tables and relationships are unaffected by addition of new table

Chapter 6 Summary (1 of 2) A many-to-many relationship requires an additional table Many-to-many is implemented with a pair of one-to-many relationships Enforce referential integrity to prevent errors Base forms and subforms on queries

Chapter 6 Summary (2 of 2) Parameter query uses prompts Aggregate functions perform calculations on groups of records New tables may be added at any time without affecting data in the existing tables