SlideShare a Scribd company logo
1 of 9
Create Table Relationships
Relationships
Why relationships?
They are critical part of your database, because
they link your tables back together after you
separate your data and also because they have a
big impact on how you design your queries and
get answers form your data.
Relationship types
Any relational database uses three types of
relationships between its tables:
 One-to-many (Most common)
 Many-to-many (Part of most transaction and
student databases)
 One-to-one (Rare or not most common)
Relationship types
One – to - Many
Many– to - Many
One– to - One
Primary Key
• A primary key is a field (or combination of fields)
that uniquely identifies each record stored in a
table
• No two records in a table may be exact duplicates
– two records may, however, contain duplicate
data other than the primary key
• Primary key must be unique
• Primary key cannot contain a null value
• Will not change in value
© CCI Learning Solutions Inc. 5
Table Relationships
• A column in a table
that references the
primary key of
another table is
called a foreign key
• Foreign keys and
primary keys
represent data
relationships
© CCI Learning Solutions Inc. 6
Table Relationships
• A relationship is made by matching data in key
fields between two tables
• When creating relationships, remember:
– Related fields may or may not have the same name
but must have the same data type
– When related fields are Number fields, they must
have the same Field Size property setting
– To define a relationship using an AutoNumber primary
key field, the foreign key must be a Number field with
a Field Size property setting of Long Integer
© CCI Learning Solutions Inc. 7
Relationship Types
One-to-one A relationship in which each record in Table A can have only
one matching record in Table B, and vice versa.
One-to-many
Parent-child
A relationship in which a record in Table A can have many
matching records in Table B, but a record in Table B has only
one matching record in Table A. The relationship is
established only if the common field is the primary key in
Table A and the foreign key in Table B.
Many-to-many A relationship in which one record in either Table A or Table
B can relate to many matching records in the other table.
Relational databases cannot directly handle many-to-many
relationships, and these must be replaced by multiple one-
to-many relationships.
© CCI Learning Solutions Inc. 8
Representing table relationships
• In an IE diagram, you
represent relationships by
drawing lines between the
key fields
• The “one” side is indicated
by drawing a 1 beside the
parent key
• The “many” side is
indicated by drawing an
infinity symbol (∞) beside
the foreign key
© CCI Learning Solutions Inc. 9

More Related Content

What's hot

Overview on excel 2013 - 6th April 2017
Overview on excel 2013 -  6th April 2017Overview on excel 2013 -  6th April 2017
Overview on excel 2013 - 6th April 2017Ahmed Essam
 
Conduct an analysis and hypothesis test of your choice on the data y
Conduct an analysis and hypothesis test of your choice on the data yConduct an analysis and hypothesis test of your choice on the data y
Conduct an analysis and hypothesis test of your choice on the data ymehek4
 
Electronic spreadsheet software
Electronic spreadsheet softwareElectronic spreadsheet software
Electronic spreadsheet softwareMendozaEllaine
 
Division
DivisionDivision
Divisionkbitah
 
Using spreadsheets in the classroom
Using spreadsheets in the classroomUsing spreadsheets in the classroom
Using spreadsheets in the classroomPatricia McCauley
 
Glosario sistemas aplicados
Glosario sistemas aplicadosGlosario sistemas aplicados
Glosario sistemas aplicadoscamiquinchis
 
Glosario sistemas aplicados
Glosario sistemas aplicadosGlosario sistemas aplicados
Glosario sistemas aplicadosCarolina Guevara
 
Crossref Metadata Manager utilization
Crossref Metadata Manager utilizationCrossref Metadata Manager utilization
Crossref Metadata Manager utilizationEdilson Damasio, PhD
 
浅谈Teradata pi和si
浅谈Teradata pi和si浅谈Teradata pi和si
浅谈Teradata pi和siyuewang4518
 
CSAII - 6.01 Research Report - Pietras
CSAII - 6.01 Research Report - PietrasCSAII - 6.01 Research Report - Pietras
CSAII - 6.01 Research Report - Pietraspietr1cr
 
Database system the final assignment for this course is an eight to
Database system the final assignment for this course is an eight toDatabase system the final assignment for this course is an eight to
Database system the final assignment for this course is an eight tomehek4
 

What's hot (19)

Lecture 2b lists
Lecture 2b listsLecture 2b lists
Lecture 2b lists
 
Spss vs excel
Spss vs excelSpss vs excel
Spss vs excel
 
Overview on excel 2013 - 6th April 2017
Overview on excel 2013 -  6th April 2017Overview on excel 2013 -  6th April 2017
Overview on excel 2013 - 6th April 2017
 
ISDD Database Structure N5
ISDD Database Structure N5ISDD Database Structure N5
ISDD Database Structure N5
 
Conduct an analysis and hypothesis test of your choice on the data y
Conduct an analysis and hypothesis test of your choice on the data yConduct an analysis and hypothesis test of your choice on the data y
Conduct an analysis and hypothesis test of your choice on the data y
 
Electronic spreadsheet software
Electronic spreadsheet softwareElectronic spreadsheet software
Electronic spreadsheet software
 
CIS 145 Test Review
CIS 145 Test ReviewCIS 145 Test Review
CIS 145 Test Review
 
Division
DivisionDivision
Division
 
The R Debate
The R DebateThe R Debate
The R Debate
 
Using spreadsheets in the classroom
Using spreadsheets in the classroomUsing spreadsheets in the classroom
Using spreadsheets in the classroom
 
Joining
JoiningJoining
Joining
 
Linked list in DS
Linked list in DSLinked list in DS
Linked list in DS
 
Glosario sistemas aplicados
Glosario sistemas aplicadosGlosario sistemas aplicados
Glosario sistemas aplicados
 
Glosario sistemas aplicados
Glosario sistemas aplicadosGlosario sistemas aplicados
Glosario sistemas aplicados
 
Crossref Metadata Manager utilization
Crossref Metadata Manager utilizationCrossref Metadata Manager utilization
Crossref Metadata Manager utilization
 
浅谈Teradata pi和si
浅谈Teradata pi和si浅谈Teradata pi和si
浅谈Teradata pi和si
 
CSAII - 6.01 Research Report - Pietras
CSAII - 6.01 Research Report - PietrasCSAII - 6.01 Research Report - Pietras
CSAII - 6.01 Research Report - Pietras
 
Database system the final assignment for this course is an eight to
Database system the final assignment for this course is an eight toDatabase system the final assignment for this course is an eight to
Database system the final assignment for this course is an eight to
 
Joins
JoinsJoins
Joins
 

Viewers also liked (15)

Presentation1
Presentation1Presentation1
Presentation1
 
S m umer wasi
S m umer wasiS m umer wasi
S m umer wasi
 
Penilitian Asuransi
Penilitian AsuransiPenilitian Asuransi
Penilitian Asuransi
 
Ajay_K_K FINAL
Ajay_K_K FINALAjay_K_K FINAL
Ajay_K_K FINAL
 
ConcreteBlockLCAReport
ConcreteBlockLCAReportConcreteBlockLCAReport
ConcreteBlockLCAReport
 
S M UMER WASI
S M UMER WASIS M UMER WASI
S M UMER WASI
 
Thesis Presentation - Joe Tursi
Thesis Presentation - Joe TursiThesis Presentation - Joe Tursi
Thesis Presentation - Joe Tursi
 
Energy Modeling Project
Energy Modeling ProjectEnergy Modeling Project
Energy Modeling Project
 
Early-warning system on SAP Compliance issues
Early-warning system on SAP Compliance issuesEarly-warning system on SAP Compliance issues
Early-warning system on SAP Compliance issues
 
Kailash satyarthi
Kailash satyarthiKailash satyarthi
Kailash satyarthi
 
Field properties
Field propertiesField properties
Field properties
 
Early warning system on SAP FICO issues
Early warning system on SAP FICO issues Early warning system on SAP FICO issues
Early warning system on SAP FICO issues
 
Correlation and regression analysis - summary
Correlation and regression analysis - summaryCorrelation and regression analysis - summary
Correlation and regression analysis - summary
 
Early-warning Alerts on SAP issues
Early-warning Alerts on SAP issues Early-warning Alerts on SAP issues
Early-warning Alerts on SAP issues
 
The man who knew too much
The  man  who  knew too   muchThe  man  who  knew too   much
The man who knew too much
 

Similar to Create Table Relationships Guide

Database Relationships
Database RelationshipsDatabase Relationships
Database Relationshipswmassie
 
Database Relationships
Database RelationshipsDatabase Relationships
Database Relationshipslindy23
 
Database relatinship
Database relatinshipDatabase relatinship
Database relatinshipZishan yousaf
 
Database Management System
Database Management SystemDatabase Management System
Database Management SystemMuhd Dembo
 
Relational Database Design
Relational Database DesignRelational Database Design
Relational Database DesignArchit Saxena
 
Relational database management system, joins and relates
Relational database management system, joins and relatesRelational database management system, joins and relates
Relational database management system, joins and relatesAyliaHasan
 
ICT NOTESmbjbujbhbuhuhhipv;ihsjhis 7.pptx
ICT NOTESmbjbujbhbuhuhhipv;ihsjhis 7.pptxICT NOTESmbjbujbhbuhuhhipv;ihsjhis 7.pptx
ICT NOTESmbjbujbhbuhuhhipv;ihsjhis 7.pptxAmanda783100
 
Introduction to databases
Introduction to databasesIntroduction to databases
Introduction to databasesBryan Corpuz
 
DB- Lect #1 Intro.pdf
DB- Lect #1 Intro.pdfDB- Lect #1 Intro.pdf
DB- Lect #1 Intro.pdfgoodperson7
 
introductiontodatabases-151106233350-lva1-app6892(2).pptx
introductiontodatabases-151106233350-lva1-app6892(2).pptxintroductiontodatabases-151106233350-lva1-app6892(2).pptx
introductiontodatabases-151106233350-lva1-app6892(2).pptxKvkExambranch
 
Cardinality and participation constraints
Cardinality and participation constraintsCardinality and participation constraints
Cardinality and participation constraintsNikhil Deswal
 
Relationships within the relational database
Relationships within the relational databaseRelationships within the relational database
Relationships within the relational databaseJanecatalla
 
Key,ID Field and Tables Relationship
Key,ID Field and Tables Relationship Key,ID Field and Tables Relationship
Key,ID Field and Tables Relationship ShouaQureshi
 
Chapter 03 foreign key relationships1
Chapter 03 foreign key relationships1Chapter 03 foreign key relationships1
Chapter 03 foreign key relationships1Kranthi Kumar
 
Advance database system(part 5)
Advance database system(part 5)Advance database system(part 5)
Advance database system(part 5)Abdullah Khosa
 
04242024_CCC TUG_Joins and Relationships
04242024_CCC TUG_Joins and Relationships04242024_CCC TUG_Joins and Relationships
04242024_CCC TUG_Joins and Relationshipsccctableauusergroup
 

Similar to Create Table Relationships Guide (20)

Database Relationships
Database RelationshipsDatabase Relationships
Database Relationships
 
Database Relationships
Database RelationshipsDatabase Relationships
Database Relationships
 
Database relatinship
Database relatinshipDatabase relatinship
Database relatinship
 
Database Management System
Database Management SystemDatabase Management System
Database Management System
 
Relational Database Design
Relational Database DesignRelational Database Design
Relational Database Design
 
Database.pptx
Database.pptxDatabase.pptx
Database.pptx
 
Access 05
Access 05Access 05
Access 05
 
Relational database management system, joins and relates
Relational database management system, joins and relatesRelational database management system, joins and relates
Relational database management system, joins and relates
 
ICT NOTESmbjbujbhbuhuhhipv;ihsjhis 7.pptx
ICT NOTESmbjbujbhbuhuhhipv;ihsjhis 7.pptxICT NOTESmbjbujbhbuhuhhipv;ihsjhis 7.pptx
ICT NOTESmbjbujbhbuhuhhipv;ihsjhis 7.pptx
 
Introduction to databases
Introduction to databasesIntroduction to databases
Introduction to databases
 
DB- Lect #1 Intro.pdf
DB- Lect #1 Intro.pdfDB- Lect #1 Intro.pdf
DB- Lect #1 Intro.pdf
 
introductiontodatabases-151106233350-lva1-app6892(2).pptx
introductiontodatabases-151106233350-lva1-app6892(2).pptxintroductiontodatabases-151106233350-lva1-app6892(2).pptx
introductiontodatabases-151106233350-lva1-app6892(2).pptx
 
Cardinality and participation constraints
Cardinality and participation constraintsCardinality and participation constraints
Cardinality and participation constraints
 
CIS 145 test 1 review
CIS 145 test 1 reviewCIS 145 test 1 review
CIS 145 test 1 review
 
Manjeet Singh.pptx
Manjeet Singh.pptxManjeet Singh.pptx
Manjeet Singh.pptx
 
Relationships within the relational database
Relationships within the relational databaseRelationships within the relational database
Relationships within the relational database
 
Key,ID Field and Tables Relationship
Key,ID Field and Tables Relationship Key,ID Field and Tables Relationship
Key,ID Field and Tables Relationship
 
Chapter 03 foreign key relationships1
Chapter 03 foreign key relationships1Chapter 03 foreign key relationships1
Chapter 03 foreign key relationships1
 
Advance database system(part 5)
Advance database system(part 5)Advance database system(part 5)
Advance database system(part 5)
 
04242024_CCC TUG_Joins and Relationships
04242024_CCC TUG_Joins and Relationships04242024_CCC TUG_Joins and Relationships
04242024_CCC TUG_Joins and Relationships
 

More from Dastan Kamaran

More from Dastan Kamaran (6)

Quiz 1
Quiz 1Quiz 1
Quiz 1
 
Q1 (a)
Q1 (a)Q1 (a)
Q1 (a)
 
Field properties
Field propertiesField properties
Field properties
 
Create table relationships
Create table relationshipsCreate table relationships
Create table relationships
 
Oop lecture1-chapter1(review of java)
Oop lecture1-chapter1(review of java)Oop lecture1-chapter1(review of java)
Oop lecture1-chapter1(review of java)
 
Oop lecture1-chapter1(review of java)
Oop lecture1-chapter1(review of java)Oop lecture1-chapter1(review of java)
Oop lecture1-chapter1(review of java)
 

Recently uploaded

B2 Creative Industry Response Evaluation.docx
B2 Creative Industry Response Evaluation.docxB2 Creative Industry Response Evaluation.docx
B2 Creative Industry Response Evaluation.docxStephen266013
 
VIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service Amravati
VIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service AmravatiVIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service Amravati
VIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service AmravatiSuhani Kapoor
 
BigBuy dropshipping via API with DroFx.pptx
BigBuy dropshipping via API with DroFx.pptxBigBuy dropshipping via API with DroFx.pptx
BigBuy dropshipping via API with DroFx.pptxolyaivanovalion
 
Week-01-2.ppt BBB human Computer interaction
Week-01-2.ppt BBB human Computer interactionWeek-01-2.ppt BBB human Computer interaction
Week-01-2.ppt BBB human Computer interactionfulawalesam
 
Market Analysis in the 5 Largest Economic Countries in Southeast Asia.pdf
Market Analysis in the 5 Largest Economic Countries in Southeast Asia.pdfMarket Analysis in the 5 Largest Economic Countries in Southeast Asia.pdf
Market Analysis in the 5 Largest Economic Countries in Southeast Asia.pdfRachmat Ramadhan H
 
Beautiful Sapna Vip Call Girls Hauz Khas 9711199012 Call /Whatsapps
Beautiful Sapna Vip  Call Girls Hauz Khas 9711199012 Call /WhatsappsBeautiful Sapna Vip  Call Girls Hauz Khas 9711199012 Call /Whatsapps
Beautiful Sapna Vip Call Girls Hauz Khas 9711199012 Call /Whatsappssapnasaifi408
 
Generative AI on Enterprise Cloud with NiFi and Milvus
Generative AI on Enterprise Cloud with NiFi and MilvusGenerative AI on Enterprise Cloud with NiFi and Milvus
Generative AI on Enterprise Cloud with NiFi and MilvusTimothy Spann
 
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Serviceranjana rawat
 
Low Rate Call Girls Bhilai Anika 8250192130 Independent Escort Service Bhilai
Low Rate Call Girls Bhilai Anika 8250192130 Independent Escort Service BhilaiLow Rate Call Girls Bhilai Anika 8250192130 Independent Escort Service Bhilai
Low Rate Call Girls Bhilai Anika 8250192130 Independent Escort Service BhilaiSuhani Kapoor
 
Customer Service Analytics - Make Sense of All Your Data.pptx
Customer Service Analytics - Make Sense of All Your Data.pptxCustomer Service Analytics - Make Sense of All Your Data.pptx
Customer Service Analytics - Make Sense of All Your Data.pptxEmmanuel Dauda
 
BabyOno dropshipping via API with DroFx.pptx
BabyOno dropshipping via API with DroFx.pptxBabyOno dropshipping via API with DroFx.pptx
BabyOno dropshipping via API with DroFx.pptxolyaivanovalion
 
Introduction-to-Machine-Learning (1).pptx
Introduction-to-Machine-Learning (1).pptxIntroduction-to-Machine-Learning (1).pptx
Introduction-to-Machine-Learning (1).pptxfirstjob4
 
VidaXL dropshipping via API with DroFx.pptx
VidaXL dropshipping via API with DroFx.pptxVidaXL dropshipping via API with DroFx.pptx
VidaXL dropshipping via API with DroFx.pptxolyaivanovalion
 
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM TRACKING WITH GOOGLE ANALYTICS.pptx
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM  TRACKING WITH GOOGLE ANALYTICS.pptxEMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM  TRACKING WITH GOOGLE ANALYTICS.pptx
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM TRACKING WITH GOOGLE ANALYTICS.pptxthyngster
 
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Callshivangimorya083
 
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al BarshaAl Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al BarshaAroojKhan71
 
Dubai Call Girls Wifey O52&786472 Call Girls Dubai
Dubai Call Girls Wifey O52&786472 Call Girls DubaiDubai Call Girls Wifey O52&786472 Call Girls Dubai
Dubai Call Girls Wifey O52&786472 Call Girls Dubaihf8803863
 
Smarteg dropshipping via API with DroFx.pptx
Smarteg dropshipping via API with DroFx.pptxSmarteg dropshipping via API with DroFx.pptx
Smarteg dropshipping via API with DroFx.pptxolyaivanovalion
 
Halmar dropshipping via API with DroFx
Halmar  dropshipping  via API with DroFxHalmar  dropshipping  via API with DroFx
Halmar dropshipping via API with DroFxolyaivanovalion
 

Recently uploaded (20)

B2 Creative Industry Response Evaluation.docx
B2 Creative Industry Response Evaluation.docxB2 Creative Industry Response Evaluation.docx
B2 Creative Industry Response Evaluation.docx
 
VIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service Amravati
VIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service AmravatiVIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service Amravati
VIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service Amravati
 
BigBuy dropshipping via API with DroFx.pptx
BigBuy dropshipping via API with DroFx.pptxBigBuy dropshipping via API with DroFx.pptx
BigBuy dropshipping via API with DroFx.pptx
 
Week-01-2.ppt BBB human Computer interaction
Week-01-2.ppt BBB human Computer interactionWeek-01-2.ppt BBB human Computer interaction
Week-01-2.ppt BBB human Computer interaction
 
Market Analysis in the 5 Largest Economic Countries in Southeast Asia.pdf
Market Analysis in the 5 Largest Economic Countries in Southeast Asia.pdfMarket Analysis in the 5 Largest Economic Countries in Southeast Asia.pdf
Market Analysis in the 5 Largest Economic Countries in Southeast Asia.pdf
 
Beautiful Sapna Vip Call Girls Hauz Khas 9711199012 Call /Whatsapps
Beautiful Sapna Vip  Call Girls Hauz Khas 9711199012 Call /WhatsappsBeautiful Sapna Vip  Call Girls Hauz Khas 9711199012 Call /Whatsapps
Beautiful Sapna Vip Call Girls Hauz Khas 9711199012 Call /Whatsapps
 
Generative AI on Enterprise Cloud with NiFi and Milvus
Generative AI on Enterprise Cloud with NiFi and MilvusGenerative AI on Enterprise Cloud with NiFi and Milvus
Generative AI on Enterprise Cloud with NiFi and Milvus
 
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
 
꧁❤ Aerocity Call Girls Service Aerocity Delhi ❤꧂ 9999965857 ☎️ Hard And Sexy ...
꧁❤ Aerocity Call Girls Service Aerocity Delhi ❤꧂ 9999965857 ☎️ Hard And Sexy ...꧁❤ Aerocity Call Girls Service Aerocity Delhi ❤꧂ 9999965857 ☎️ Hard And Sexy ...
꧁❤ Aerocity Call Girls Service Aerocity Delhi ❤꧂ 9999965857 ☎️ Hard And Sexy ...
 
Low Rate Call Girls Bhilai Anika 8250192130 Independent Escort Service Bhilai
Low Rate Call Girls Bhilai Anika 8250192130 Independent Escort Service BhilaiLow Rate Call Girls Bhilai Anika 8250192130 Independent Escort Service Bhilai
Low Rate Call Girls Bhilai Anika 8250192130 Independent Escort Service Bhilai
 
Customer Service Analytics - Make Sense of All Your Data.pptx
Customer Service Analytics - Make Sense of All Your Data.pptxCustomer Service Analytics - Make Sense of All Your Data.pptx
Customer Service Analytics - Make Sense of All Your Data.pptx
 
BabyOno dropshipping via API with DroFx.pptx
BabyOno dropshipping via API with DroFx.pptxBabyOno dropshipping via API with DroFx.pptx
BabyOno dropshipping via API with DroFx.pptx
 
Introduction-to-Machine-Learning (1).pptx
Introduction-to-Machine-Learning (1).pptxIntroduction-to-Machine-Learning (1).pptx
Introduction-to-Machine-Learning (1).pptx
 
VidaXL dropshipping via API with DroFx.pptx
VidaXL dropshipping via API with DroFx.pptxVidaXL dropshipping via API with DroFx.pptx
VidaXL dropshipping via API with DroFx.pptx
 
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM TRACKING WITH GOOGLE ANALYTICS.pptx
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM  TRACKING WITH GOOGLE ANALYTICS.pptxEMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM  TRACKING WITH GOOGLE ANALYTICS.pptx
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM TRACKING WITH GOOGLE ANALYTICS.pptx
 
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
 
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al BarshaAl Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
 
Dubai Call Girls Wifey O52&786472 Call Girls Dubai
Dubai Call Girls Wifey O52&786472 Call Girls DubaiDubai Call Girls Wifey O52&786472 Call Girls Dubai
Dubai Call Girls Wifey O52&786472 Call Girls Dubai
 
Smarteg dropshipping via API with DroFx.pptx
Smarteg dropshipping via API with DroFx.pptxSmarteg dropshipping via API with DroFx.pptx
Smarteg dropshipping via API with DroFx.pptx
 
Halmar dropshipping via API with DroFx
Halmar  dropshipping  via API with DroFxHalmar  dropshipping  via API with DroFx
Halmar dropshipping via API with DroFx
 

Create Table Relationships Guide

  • 2. Relationships Why relationships? They are critical part of your database, because they link your tables back together after you separate your data and also because they have a big impact on how you design your queries and get answers form your data.
  • 3. Relationship types Any relational database uses three types of relationships between its tables:  One-to-many (Most common)  Many-to-many (Part of most transaction and student databases)  One-to-one (Rare or not most common)
  • 4. Relationship types One – to - Many Many– to - Many One– to - One
  • 5. Primary Key • A primary key is a field (or combination of fields) that uniquely identifies each record stored in a table • No two records in a table may be exact duplicates – two records may, however, contain duplicate data other than the primary key • Primary key must be unique • Primary key cannot contain a null value • Will not change in value © CCI Learning Solutions Inc. 5
  • 6. Table Relationships • A column in a table that references the primary key of another table is called a foreign key • Foreign keys and primary keys represent data relationships © CCI Learning Solutions Inc. 6
  • 7. Table Relationships • A relationship is made by matching data in key fields between two tables • When creating relationships, remember: – Related fields may or may not have the same name but must have the same data type – When related fields are Number fields, they must have the same Field Size property setting – To define a relationship using an AutoNumber primary key field, the foreign key must be a Number field with a Field Size property setting of Long Integer © CCI Learning Solutions Inc. 7
  • 8. Relationship Types One-to-one A relationship in which each record in Table A can have only one matching record in Table B, and vice versa. One-to-many Parent-child A relationship in which a record in Table A can have many matching records in Table B, but a record in Table B has only one matching record in Table A. The relationship is established only if the common field is the primary key in Table A and the foreign key in Table B. Many-to-many A relationship in which one record in either Table A or Table B can relate to many matching records in the other table. Relational databases cannot directly handle many-to-many relationships, and these must be replaced by multiple one- to-many relationships. © CCI Learning Solutions Inc. 8
  • 9. Representing table relationships • In an IE diagram, you represent relationships by drawing lines between the key fields • The “one” side is indicated by drawing a 1 beside the parent key • The “many” side is indicated by drawing an infinity symbol (∞) beside the foreign key © CCI Learning Solutions Inc. 9

Editor's Notes

  1. Pg 58
  2. Pg 96
  3. Pg 96
  4. Pg 96
  5. Pg 97