Professional Documents
Culture Documents
Access
Create Relationships for a new
database
Lecture 6
1-2
Create relationships
1-3
Create relationships
Primary and foreign keys in a table structure. 2 When you share a primary key, the
new field in the second table is
called a foreign key.
1-4
Create relationships
This course shows you how to
create that type of relationship and
how to set rules that control how
you can update and delete the data
in your database.
1-6
Types of relationships
Your tables can participate in three
types of relationships, as shown in
the picture:
1-8
Creating a Relational Database
Point to the bottom of the video to see the video controls. Drag or point along the progress bar to
move forward or go back. 1-10
Creating a Relational Database
Create a relational database that will be used to keep track of a music collection.
1-11
Creating a Relational Database
1-12
Creating a Relational Database
1-13
Set referential integrity
Point to the bottom of the video to see the video controls. Drag or point along the progress bar to
move forward or go back.
1-14
Creating a Relational Database
Choose the CDS table and the SONGS table to add them both to the relationships window.
1-15
Creating a Relational Database
Relationships window.
Click on CD# in the CDS table and drag it on to CD# in the SONGS table.
1-16
Creating a Relational Database
A line will appear to indicate the relationship
1-17
Creating a Relational Database
Enter the following record in the CDS table and SONGS table
When you finish entering the record, a + sign will appear to the left of the record.
1-18
Creating a Relational Database
Enter the following record in the SONG table
1-19
Creating Lookup Lists
Enter the following records in CD types and GENRES types
1-20
Creating Lookup Lists
Point to the bottom of the video to see the video controls. Drag or point along the progress bar to
move forward or go back. 1-21
Creating Lookup Lists
1-22
Creating Lookup Lists
Select the Table: CD TYPES
1-23
Creating Lookup Lists
Select the CD TYPES field
1-24
Creating Lookup Lists
Choose to have the CD Types sorted in alphabetical order
1-25
Creating Lookup Lists
Click FINISH to create a relationship between the CDS & CD TYPES tables.
1-26
Checking Lookup Relationships
Select Database Tools from the Ribbon and click the Relationships icon.
1-27