SlideShare a Scribd company logo
1 of 2
Download to read offline
3.6 Establishing a Relationship
1. Display the table in Design view.
2. Select the field and Click Primary Key.
http://www.skitfy.com
Access ဟာ RDBMS (Relational Database Management System) တစ္ခု။
ဒီေတာ့ Table ေတြ ဘယ္လို Relationship လုပ္မလဲဆိုတာ အေရးၾကီးပါတယ္။
Table တစ္ခုနဲ႕တစ္ခု Relationship လုပ္ဖို႕ သူတို႕ရဲ႕ PK (Primary Key) ဟာလည္း အေရးၾကီးပါတယ္။
Primary Key ဆိုတာ တစ္ခုနဲ႕တစ္ခု တူလို႕မရေအာင္ သတ္မွတ္တာပါ။
ဥပမာ။ ကြ်န္ေတာ္တို႕ မွတ္ပံုတင္နံပါတ္ေတြ တူလို႕မရပါဘူး။
ေက်ာင္း၀င္နံပါတ္ေတြ တူလို႕မရပါဘူး။ ၀န္ထမ္း ID တူလို႕မရပါဘူး။
ဖုန္းနံပါတ္ေတြ တူလို႕မရပါဘူး။
ဒါဆိုရင္ေတာ့ Duplicate ျဖစ္လို႕မရတဲ့ Primary Key ကို သိေလာက္ပါျပီ။
Exercise
1. Create a Table with name “tblRank”
2. Create Field with name “RankID”, Set its Data Type to “Number”
3. Set RankID as Primary Key.
4. Create Filed with name “RankDesp”
1. Click Database Tools.
2. Click Relationship.
3. Click Show Table (if required)
4. Select Tables and click Add.
5. Click Close (Show Table).
6. Drag RankID from tblRank and
7. Drop it on Rank in the tblStaff.
8. Click Create.
9. Click Close (In the Ribbon).
10. Click Save. ( to changes to the
layout of ‘Relationships’?)
http://www.skitfy.com

More Related Content

More from Pyi Soe

6.6 Creating Calculated Controls
6.6 Creating Calculated Controls6.6 Creating Calculated Controls
6.6 Creating Calculated ControlsPyi Soe
 
6.3 Adding a Control to a Report
6.3 Adding a Control to a Report6.3 Adding a Control to a Report
6.3 Adding a Control to a ReportPyi Soe
 
6.4 Creating a Report in Design View
6.4 Creating a Report in Design View6.4 Creating a Report in Design View
6.4 Creating a Report in Design ViewPyi Soe
 
6.1 Creating a Report Using AutoReport
6.1 Creating a Report Using AutoReport6.1 Creating a Report Using AutoReport
6.1 Creating a Report Using AutoReportPyi Soe
 
5.5 Resizing Controls on Forms
5.5 Resizing Controls on Forms5.5 Resizing Controls on Forms
5.5 Resizing Controls on FormsPyi Soe
 
5.4 Modifying Control Properties
5.4 Modifying Control Properties5.4 Modifying Control Properties
5.4 Modifying Control PropertiesPyi Soe
 
5 Designing Form
5 Designing Form5 Designing Form
5 Designing FormPyi Soe
 
5.3 Adding Controls to a Form
5.3 Adding Controls to a Form5.3 Adding Controls to a Form
5.3 Adding Controls to a FormPyi Soe
 
5.1 Creating a Form Using AutoForm
5.1 Creating a Form Using AutoForm5.1 Creating a Form Using AutoForm
5.1 Creating a Form Using AutoFormPyi Soe
 
4.4 Creating a Calculated Field
4.4 Creating a Calculated Field4.4 Creating a Calculated Field
4.4 Creating a Calculated FieldPyi Soe
 
4.2 Specifying Criteria in a Query
4.2 Specifying Criteria in a Query4.2 Specifying Criteria in a Query
4.2 Specifying Criteria in a QueryPyi Soe
 
2.1 Creating a Database
2.1 Creating a Database2.1 Creating a Database
2.1 Creating a DatabasePyi Soe
 
1.3 Moving Around in Access
1.3 Moving Around in Access1.3 Moving Around in Access
1.3 Moving Around in AccessPyi Soe
 
1.4 Opening an Object in Datasheet View
1.4 Opening an Object in Datasheet View1.4 Opening an Object in Datasheet View
1.4 Opening an Object in Datasheet ViewPyi Soe
 
2.3 Adding Fields to Tables
2.3 Adding Fields to Tables2.3 Adding Fields to Tables
2.3 Adding Fields to TablesPyi Soe
 
1.1 Starting Access
1.1 Starting Access1.1 Starting Access
1.1 Starting AccessPyi Soe
 
Ps access3.3 to3.5
Ps access3.3 to3.5Ps access3.3 to3.5
Ps access3.3 to3.5Pyi Soe
 
Ps access3.6
Ps access3.6Ps access3.6
Ps access3.6Pyi Soe
 
Ps access3.1 and3.2
Ps access3.1 and3.2Ps access3.1 and3.2
Ps access3.1 and3.2Pyi Soe
 
Ps access1.3
Ps access1.3Ps access1.3
Ps access1.3Pyi Soe
 

More from Pyi Soe (20)

6.6 Creating Calculated Controls
6.6 Creating Calculated Controls6.6 Creating Calculated Controls
6.6 Creating Calculated Controls
 
6.3 Adding a Control to a Report
6.3 Adding a Control to a Report6.3 Adding a Control to a Report
6.3 Adding a Control to a Report
 
6.4 Creating a Report in Design View
6.4 Creating a Report in Design View6.4 Creating a Report in Design View
6.4 Creating a Report in Design View
 
6.1 Creating a Report Using AutoReport
6.1 Creating a Report Using AutoReport6.1 Creating a Report Using AutoReport
6.1 Creating a Report Using AutoReport
 
5.5 Resizing Controls on Forms
5.5 Resizing Controls on Forms5.5 Resizing Controls on Forms
5.5 Resizing Controls on Forms
 
5.4 Modifying Control Properties
5.4 Modifying Control Properties5.4 Modifying Control Properties
5.4 Modifying Control Properties
 
5 Designing Form
5 Designing Form5 Designing Form
5 Designing Form
 
5.3 Adding Controls to a Form
5.3 Adding Controls to a Form5.3 Adding Controls to a Form
5.3 Adding Controls to a Form
 
5.1 Creating a Form Using AutoForm
5.1 Creating a Form Using AutoForm5.1 Creating a Form Using AutoForm
5.1 Creating a Form Using AutoForm
 
4.4 Creating a Calculated Field
4.4 Creating a Calculated Field4.4 Creating a Calculated Field
4.4 Creating a Calculated Field
 
4.2 Specifying Criteria in a Query
4.2 Specifying Criteria in a Query4.2 Specifying Criteria in a Query
4.2 Specifying Criteria in a Query
 
2.1 Creating a Database
2.1 Creating a Database2.1 Creating a Database
2.1 Creating a Database
 
1.3 Moving Around in Access
1.3 Moving Around in Access1.3 Moving Around in Access
1.3 Moving Around in Access
 
1.4 Opening an Object in Datasheet View
1.4 Opening an Object in Datasheet View1.4 Opening an Object in Datasheet View
1.4 Opening an Object in Datasheet View
 
2.3 Adding Fields to Tables
2.3 Adding Fields to Tables2.3 Adding Fields to Tables
2.3 Adding Fields to Tables
 
1.1 Starting Access
1.1 Starting Access1.1 Starting Access
1.1 Starting Access
 
Ps access3.3 to3.5
Ps access3.3 to3.5Ps access3.3 to3.5
Ps access3.3 to3.5
 
Ps access3.6
Ps access3.6Ps access3.6
Ps access3.6
 
Ps access3.1 and3.2
Ps access3.1 and3.2Ps access3.1 and3.2
Ps access3.1 and3.2
 
Ps access1.3
Ps access1.3Ps access1.3
Ps access1.3
 

Recently uploaded

Hierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementHierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementmkooblal
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsanshu789521
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Celine George
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
Blooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docxBlooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docxUnboundStockton
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxiammrhaywood
 
Meghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentMeghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentInMediaRes1
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPCeline George
 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersSabitha Banu
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 
Gas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxGas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxDr.Ibrahim Hassaan
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxthorishapillay1
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceSamikshaHamane
 

Recently uploaded (20)

Hierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementHierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of management
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha elections
 
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17
 
OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 
Blooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docxBlooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docx
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
 
Meghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentMeghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media Component
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERP
 
ESSENTIAL of (CS/IT/IS) class 06 (database)
ESSENTIAL of (CS/IT/IS) class 06 (database)ESSENTIAL of (CS/IT/IS) class 06 (database)
ESSENTIAL of (CS/IT/IS) class 06 (database)
 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginners
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 
Gas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxGas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptx
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptx
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in Pharmacovigilance
 

Establishing Relationships in Access

  • 1. 3.6 Establishing a Relationship 1. Display the table in Design view. 2. Select the field and Click Primary Key. http://www.skitfy.com Access ဟာ RDBMS (Relational Database Management System) တစ္ခု။ ဒီေတာ့ Table ေတြ ဘယ္လို Relationship လုပ္မလဲဆိုတာ အေရးၾကီးပါတယ္။ Table တစ္ခုနဲ႕တစ္ခု Relationship လုပ္ဖို႕ သူတို႕ရဲ႕ PK (Primary Key) ဟာလည္း အေရးၾကီးပါတယ္။ Primary Key ဆိုတာ တစ္ခုနဲ႕တစ္ခု တူလို႕မရေအာင္ သတ္မွတ္တာပါ။ ဥပမာ။ ကြ်န္ေတာ္တို႕ မွတ္ပံုတင္နံပါတ္ေတြ တူလို႕မရပါဘူး။ ေက်ာင္း၀င္နံပါတ္ေတြ တူလို႕မရပါဘူး။ ၀န္ထမ္း ID တူလို႕မရပါဘူး။ ဖုန္းနံပါတ္ေတြ တူလို႕မရပါဘူး။ ဒါဆိုရင္ေတာ့ Duplicate ျဖစ္လို႕မရတဲ့ Primary Key ကို သိေလာက္ပါျပီ။ Exercise 1. Create a Table with name “tblRank” 2. Create Field with name “RankID”, Set its Data Type to “Number” 3. Set RankID as Primary Key. 4. Create Filed with name “RankDesp”
  • 2. 1. Click Database Tools. 2. Click Relationship. 3. Click Show Table (if required) 4. Select Tables and click Add. 5. Click Close (Show Table). 6. Drag RankID from tblRank and 7. Drop it on Rank in the tblStaff. 8. Click Create. 9. Click Close (In the Ribbon). 10. Click Save. ( to changes to the layout of ‘Relationships’?) http://www.skitfy.com