Beruflich Dokumente
Kultur Dokumente
Main parts
Create four tables, set data type, and input data
Set Format correctly (percent, currency) Set Input Mask for Phone field Set validation rule for Email field
Extra credit
Add extra validation rules Add extra fields and records
Purpose
Prevent redundant data in database
Use data in more efficient way
RowID 1 2 3 4 5 6
CID
1 2 3 4
Course
Database Buddhism Chistians Evolution
Credits
3 3 3 3
Instructor
Lazimy Buddha Jesus Darwin
One-to-Many
Most frequently used relationship
The basic relationship in Access One side should have a unique key
One-to-One
Both side should be linked by unique key fields
Many-to-Many
Access does not support direct Many-to-Many relationship
One-to-many
many-to-many One-to-one
Example
In previous slide, CID in tblOrder is Foreign Key.
Cascade update
When you change a PK in parent record,
all linked FKs in child records will be changed, too
Cascade delete
When you delete a parent record, all linked child records will be deleted, too
Results
Keep consistency of database
But, be extremely careful! The data can be all gone by one click!
Main problems
Create relationships in Access Understand the concept of PK and FK Create Self One-to-one relationship (Extra credit)
Submission
Your Access database file (.accdb) Text file answering the five questions (.txt)