SlideShare ist ein Scribd-Unternehmen logo
1 von 27
CREATING  RELATIONSHIPS BETWEEN DATABASE TABLES Chapter 2 Microsoft Access 2007 – Level 1
Performance Objectives ,[object Object],[object Object],[object Object],[object Object],[object Object]
Creating Related Tables ,[object Object],[object Object],[object Object],[object Object]
Determining Relationships Planning is most important  Break down fields into tables to avoid redundancies Clients table Client # Client Street Address City State Zip Code Insurance table License # Client # Insurance Code Uninsured Motorist Coverage table Insurance Code Type of Insurance Claims table Claim # Client # License # Date of Claim Amount of Claim Notice that each table is  about only one subject Some fields appear in more than one table – they are used  to create a relationship
Creating a Primary Field ,[object Object],[object Object],[object Object],[object Object],[object Object]
Creating a Primary Field…/2 Open table in Design view Position insertion point in field Click Primary Key button Notice image of key To define more than one field as the primary key, select the rows and click the Primary Key button
Creating a Foreign Key A primary key field in one table may be a foreign key in another Primary key  and  foreign key  form a relationship between the tables Clients table Client # Client Street Address City State Zip Code Insurance table License # Client # Insurance Code Uninsured Motorist Coverage table Insurance Code Type of Insurance Claims table Claim # Client # License # Date of Claim Amount of Claim
Establishing a Relationship ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Creating a One-to-Many Relationship Open database file Click Database Tools tab, Relationships Show Table dialog box appears when no relationships have been defined yet
Creating a One-to-Many Relationship…/2 Double-click each table to add it to the Relationships window After adding  all the tables Repeat until all required tables are added Click Close when done adding Notice that the  Primary keys  are indicated
Creating a One-to-Many Relationship…/3 Drag the common field from the primary table (the “one”) to the related table (the “many”) Edit Relationships dialog box appears Ensure that the correct tables and field names  display Make sure type is One-To-Many Click Check options as desired
Creating a One-to-Many Relationship…/4 Join line is thick at both ends if referential integrity option has been chosen Save the Relationship by clicking the Save button  in the Quick Access toolbar Join line This join line shows that  each  client may have  many  claims (1 to ∞)
Specifying Referential Integrity If a related table contains a record, you will  not  be able to change or delete a primary key value in the primary table As you change  a primary key value in the primary table, Access will automatically update the matching value in the related tables As you delete a record  in the primary table, Access will also delete any related records in the related tables
Printing Database Relationships With the Relationships open, click the Relationship Report button The Relationships report in Print Preview Click the Print button in Quick Access toolbar
Creating Additional Relationships Open Relationships if necessary and click the Show Table button  to add other tables to the  database relationships Drag a primary key in one table to a foreign key in another table Follow the same procedure as before to verify the table fields and the relationship type,  and to set the desired referential integrity
Editing a Relationship Right-click a join line and click  Edit Relationship OR Can move a table entry  by dragging its Title bar Open Relationships … Click a join line and click  OR Double-click a join line
Deleting a Relationship Open Relationships … Right-click a join line and click Delete OR Click a join line and press the Delete key
Showing a Subdatasheet Click + sign preceding  desired record +   expands -   collapses Select table Click OK
Displaying Related Records in a Subdatasheet Can view, edit or add data in the subdatasheet Click + sign preceding  desired record +   expands -   collapses Only available when tables have relationships
Managing Subdatasheets Can choose a different  subdatasheet With an open table … Click Home tab, More button  (in the Records group) Can remove the subdatasheet Same as clicking the + or –  preceding each record of the table
Features Summary How do you identify a primary key? Image of a key shows by the field name
Features Summary How do you display the Relationships window? Database Tools tab, Relationships button
Features Summary How do you display the Edit Relationships dialog box? Right-click a join line and click  Edit Relationship OR Click a join line and click  OR Double-click a join line
Features Summary How do you display the Show Table dialog box? Database Tools tab, Relationships, click the Show Table button
Features Summary How do you print database relationships? With the Relationships open, click the Relationship Report button Click the Print button in Quick Access toolbar
Features Summary How do you display the Insert Subdatasheet dialog box? Features Summary Click the + sign preceding a record Click Home tab, Records group, More button, Click Open a table OR
Coming Next MODIFYING AND MANAGING TABLES Chapter 3

Weitere ähnliche Inhalte

Was ist angesagt?

Getting started with_microsoft_excel
Getting started with_microsoft_excelGetting started with_microsoft_excel
Getting started with_microsoft_excel
Pratiksha Mhatre
 
Panduan Asas Excel (ICTL)
Panduan Asas Excel (ICTL)Panduan Asas Excel (ICTL)
Panduan Asas Excel (ICTL)
Cikgu Bibi
 
Excel pivot tables (1)
Excel pivot tables (1)Excel pivot tables (1)
Excel pivot tables (1)
priyanka8587
 
Microsoft excel tutorial06
Microsoft excel tutorial06Microsoft excel tutorial06
Microsoft excel tutorial06
Alam Khan
 

Was ist angesagt? (20)

Ms access 2010 lesson 3 (Interface)
Ms access 2010 lesson 3 (Interface)Ms access 2010 lesson 3 (Interface)
Ms access 2010 lesson 3 (Interface)
 
Microsoft Excel Basics
Microsoft Excel BasicsMicrosoft Excel Basics
Microsoft Excel Basics
 
MS Excel 2013
MS Excel 2013MS Excel 2013
MS Excel 2013
 
Getting started with_microsoft_excel
Getting started with_microsoft_excelGetting started with_microsoft_excel
Getting started with_microsoft_excel
 
14 must know terms for microsoft excel beginners
14 must know terms for microsoft excel beginners14 must know terms for microsoft excel beginners
14 must know terms for microsoft excel beginners
 
excell
excellexcell
excell
 
Panduan Asas Excel (ICTL)
Panduan Asas Excel (ICTL)Panduan Asas Excel (ICTL)
Panduan Asas Excel (ICTL)
 
Microsoft Office 2013 Excel New Features
Microsoft Office 2013 Excel New FeaturesMicrosoft Office 2013 Excel New Features
Microsoft Office 2013 Excel New Features
 
Microsoft excel
Microsoft excelMicrosoft excel
Microsoft excel
 
MS Excel Training(Basic)
MS Excel Training(Basic)MS Excel Training(Basic)
MS Excel Training(Basic)
 
Excel pivot tables (1)
Excel pivot tables (1)Excel pivot tables (1)
Excel pivot tables (1)
 
Assignment in era
Assignment in eraAssignment in era
Assignment in era
 
Introduction to MS excel
Introduction to MS excelIntroduction to MS excel
Introduction to MS excel
 
Excel 2007
Excel 2007Excel 2007
Excel 2007
 
Tables
TablesTables
Tables
 
Microsoft Excel introduction
Microsoft Excel introductionMicrosoft Excel introduction
Microsoft Excel introduction
 
Basics to Excel
Basics to ExcelBasics to Excel
Basics to Excel
 
ASSIGNMENT IN IT ERA
ASSIGNMENT IN IT ERAASSIGNMENT IN IT ERA
ASSIGNMENT IN IT ERA
 
Jeopardy table review ns
Jeopardy table review nsJeopardy table review ns
Jeopardy table review ns
 
Microsoft excel tutorial06
Microsoft excel tutorial06Microsoft excel tutorial06
Microsoft excel tutorial06
 

Andere mochten auch

Introduction TO Microsoft Access
Introduction TO Microsoft AccessIntroduction TO Microsoft Access
Introduction TO Microsoft Access
Chhom Karath
 
Ppt on water level indicator
Ppt on water level indicatorPpt on water level indicator
Ppt on water level indicator
palwinder virk
 
Fundamentals of Database ppt ch01
Fundamentals of Database ppt ch01Fundamentals of Database ppt ch01
Fundamentals of Database ppt ch01
Jotham Gadot
 

Andere mochten auch (13)

Microsoft Access
Microsoft AccessMicrosoft Access
Microsoft Access
 
Introduction TO Microsoft Access
Introduction TO Microsoft AccessIntroduction TO Microsoft Access
Introduction TO Microsoft Access
 
New Perspectives: Access.02
New Perspectives: Access.02New Perspectives: Access.02
New Perspectives: Access.02
 
Microsoft Access
Microsoft Access Microsoft Access
Microsoft Access
 
Water level indicator by bhushan kumbhalkar
Water level indicator by  bhushan kumbhalkarWater level indicator by  bhushan kumbhalkar
Water level indicator by bhushan kumbhalkar
 
How to Create A Microsoft Access 2007 Database
How to Create A Microsoft Access 2007 DatabaseHow to Create A Microsoft Access 2007 Database
How to Create A Microsoft Access 2007 Database
 
Simple Automatic Water Level Controller by using ic 555 timer.
Simple Automatic Water Level Controller by using ic 555 timer.Simple Automatic Water Level Controller by using ic 555 timer.
Simple Automatic Water Level Controller by using ic 555 timer.
 
Microsoft Access 2007: Get To Know Access
Microsoft Access 2007: Get To Know AccessMicrosoft Access 2007: Get To Know Access
Microsoft Access 2007: Get To Know Access
 
Intro to Microsoft Access
Intro to Microsoft AccessIntro to Microsoft Access
Intro to Microsoft Access
 
Water level controller
Water level controllerWater level controller
Water level controller
 
Training MS Access 2007
Training MS Access 2007Training MS Access 2007
Training MS Access 2007
 
Ppt on water level indicator
Ppt on water level indicatorPpt on water level indicator
Ppt on water level indicator
 
Fundamentals of Database ppt ch01
Fundamentals of Database ppt ch01Fundamentals of Database ppt ch01
Fundamentals of Database ppt ch01
 

Ähnlich wie Access07 l1 ch2

MS Office Access Tutorial
MS Office Access TutorialMS Office Access Tutorial
MS Office Access Tutorial
virtualMaryam
 
Creating relationships with tables
Creating relationships with tablesCreating relationships with tables
Creating relationships with tables
Jhen Articona
 
Sorting, Filtering, and Creating Relationships.pptx
Sorting, Filtering, and Creating Relationships.pptxSorting, Filtering, and Creating Relationships.pptx
Sorting, Filtering, and Creating Relationships.pptx
kulmiyealiabdille
 
Database Relationships
Database RelationshipsDatabase Relationships
Database Relationships
wmassie
 
D I T211 Chapter 5 ( Lab 3)
D I T211    Chapter 5 ( Lab 3)D I T211    Chapter 5 ( Lab 3)
D I T211 Chapter 5 ( Lab 3)
askme
 

Ähnlich wie Access07 l1 ch2 (20)

MS Office Access Tutorial
MS Office Access TutorialMS Office Access Tutorial
MS Office Access Tutorial
 
Creating relationships with tables
Creating relationships with tablesCreating relationships with tables
Creating relationships with tables
 
acct accounting Table Lab.pdf
acct accounting Table Lab.pdfacct accounting Table Lab.pdf
acct accounting Table Lab.pdf
 
Acccesss notes
Acccesss notesAcccesss notes
Acccesss notes
 
PPT On MS-Access 2007 | Full Concepts |
PPT On MS-Access 2007 | Full Concepts |PPT On MS-Access 2007 | Full Concepts |
PPT On MS-Access 2007 | Full Concepts |
 
Cis145 Final Review
Cis145 Final ReviewCis145 Final Review
Cis145 Final Review
 
CIS145 Final Review
CIS145 Final ReviewCIS145 Final Review
CIS145 Final Review
 
Excel notes by satish kumar avunoori
Excel notes by satish kumar avunooriExcel notes by satish kumar avunoori
Excel notes by satish kumar avunoori
 
Cis145 Final Review
Cis145 Final ReviewCis145 Final Review
Cis145 Final Review
 
Sorting, Filtering, and Creating Relationships.pptx
Sorting, Filtering, and Creating Relationships.pptxSorting, Filtering, and Creating Relationships.pptx
Sorting, Filtering, and Creating Relationships.pptx
 
MS Access 2010 tutorial 3
MS Access 2010 tutorial 3MS Access 2010 tutorial 3
MS Access 2010 tutorial 3
 
access1.ppt
access1.pptaccess1.ppt
access1.ppt
 
Database Relationships
Database RelationshipsDatabase Relationships
Database Relationships
 
MS ACCESS PPT.pptx
MS ACCESS PPT.pptxMS ACCESS PPT.pptx
MS ACCESS PPT.pptx
 
Access 2007 lecture notes students
Access 2007 lecture notes studentsAccess 2007 lecture notes students
Access 2007 lecture notes students
 
Access07 l1 ch1
Access07 l1 ch1Access07 l1 ch1
Access07 l1 ch1
 
New slides access
New slides accessNew slides access
New slides access
 
Exp2003 exl ppt_03
Exp2003 exl ppt_03Exp2003 exl ppt_03
Exp2003 exl ppt_03
 
Introduction to Microsoft Access2.ppt
Introduction to Microsoft Access2.pptIntroduction to Microsoft Access2.ppt
Introduction to Microsoft Access2.ppt
 
D I T211 Chapter 5 ( Lab 3)
D I T211    Chapter 5 ( Lab 3)D I T211    Chapter 5 ( Lab 3)
D I T211 Chapter 5 ( Lab 3)
 

Mehr von Elizabeth de Leon Aler (8)

Excel07 l1 ch1
Excel07 l1 ch1Excel07 l1 ch1
Excel07 l1 ch1
 
Paano
PaanoPaano
Paano
 
Fumar
FumarFumar
Fumar
 
Ch1
Ch1Ch1
Ch1
 
Binary arithmetic
Binary arithmeticBinary arithmetic
Binary arithmetic
 
Application software
Application softwareApplication software
Application software
 
Algorithm and flowchart
Algorithm and flowchartAlgorithm and flowchart
Algorithm and flowchart
 
Ch1
Ch1Ch1
Ch1
 

Kürzlich hochgeladen

Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
WSO2
 

Kürzlich hochgeladen (20)

Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
 
A Beginners Guide to Building a RAG App Using Open Source Milvus
A Beginners Guide to Building a RAG App Using Open Source MilvusA Beginners Guide to Building a RAG App Using Open Source Milvus
A Beginners Guide to Building a RAG App Using Open Source Milvus
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 

Access07 l1 ch2

  • 1. CREATING RELATIONSHIPS BETWEEN DATABASE TABLES Chapter 2 Microsoft Access 2007 – Level 1
  • 2.
  • 3.
  • 4. Determining Relationships Planning is most important Break down fields into tables to avoid redundancies Clients table Client # Client Street Address City State Zip Code Insurance table License # Client # Insurance Code Uninsured Motorist Coverage table Insurance Code Type of Insurance Claims table Claim # Client # License # Date of Claim Amount of Claim Notice that each table is about only one subject Some fields appear in more than one table – they are used to create a relationship
  • 5.
  • 6. Creating a Primary Field…/2 Open table in Design view Position insertion point in field Click Primary Key button Notice image of key To define more than one field as the primary key, select the rows and click the Primary Key button
  • 7. Creating a Foreign Key A primary key field in one table may be a foreign key in another Primary key and foreign key form a relationship between the tables Clients table Client # Client Street Address City State Zip Code Insurance table License # Client # Insurance Code Uninsured Motorist Coverage table Insurance Code Type of Insurance Claims table Claim # Client # License # Date of Claim Amount of Claim
  • 8.
  • 9. Creating a One-to-Many Relationship Open database file Click Database Tools tab, Relationships Show Table dialog box appears when no relationships have been defined yet
  • 10. Creating a One-to-Many Relationship…/2 Double-click each table to add it to the Relationships window After adding all the tables Repeat until all required tables are added Click Close when done adding Notice that the Primary keys are indicated
  • 11. Creating a One-to-Many Relationship…/3 Drag the common field from the primary table (the “one”) to the related table (the “many”) Edit Relationships dialog box appears Ensure that the correct tables and field names display Make sure type is One-To-Many Click Check options as desired
  • 12. Creating a One-to-Many Relationship…/4 Join line is thick at both ends if referential integrity option has been chosen Save the Relationship by clicking the Save button in the Quick Access toolbar Join line This join line shows that each client may have many claims (1 to ∞)
  • 13. Specifying Referential Integrity If a related table contains a record, you will not be able to change or delete a primary key value in the primary table As you change a primary key value in the primary table, Access will automatically update the matching value in the related tables As you delete a record in the primary table, Access will also delete any related records in the related tables
  • 14. Printing Database Relationships With the Relationships open, click the Relationship Report button The Relationships report in Print Preview Click the Print button in Quick Access toolbar
  • 15. Creating Additional Relationships Open Relationships if necessary and click the Show Table button to add other tables to the database relationships Drag a primary key in one table to a foreign key in another table Follow the same procedure as before to verify the table fields and the relationship type, and to set the desired referential integrity
  • 16. Editing a Relationship Right-click a join line and click Edit Relationship OR Can move a table entry by dragging its Title bar Open Relationships … Click a join line and click OR Double-click a join line
  • 17. Deleting a Relationship Open Relationships … Right-click a join line and click Delete OR Click a join line and press the Delete key
  • 18. Showing a Subdatasheet Click + sign preceding desired record + expands - collapses Select table Click OK
  • 19. Displaying Related Records in a Subdatasheet Can view, edit or add data in the subdatasheet Click + sign preceding desired record + expands - collapses Only available when tables have relationships
  • 20. Managing Subdatasheets Can choose a different subdatasheet With an open table … Click Home tab, More button (in the Records group) Can remove the subdatasheet Same as clicking the + or – preceding each record of the table
  • 21. Features Summary How do you identify a primary key? Image of a key shows by the field name
  • 22. Features Summary How do you display the Relationships window? Database Tools tab, Relationships button
  • 23. Features Summary How do you display the Edit Relationships dialog box? Right-click a join line and click Edit Relationship OR Click a join line and click OR Double-click a join line
  • 24. Features Summary How do you display the Show Table dialog box? Database Tools tab, Relationships, click the Show Table button
  • 25. Features Summary How do you print database relationships? With the Relationships open, click the Relationship Report button Click the Print button in Quick Access toolbar
  • 26. Features Summary How do you display the Insert Subdatasheet dialog box? Features Summary Click the + sign preceding a record Click Home tab, Records group, More button, Click Open a table OR
  • 27. Coming Next MODIFYING AND MANAGING TABLES Chapter 3