ps access3.6

2
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”

Upload: pyi-soe

Post on 13-Apr-2017

97 views

Category:

Education


3 download

TRANSCRIPT

Page 1: Ps access3.6

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 ကုိ သိေလာက္ပါျပီ။

Exercise1. 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”

Page 2: Ps access3.6

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 and7. 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