Access2013 T02 PPT
Access2013 T02 PPT
Access2013 T02 PPT
Building a Database
and Defining Table Relationships
• Session 2.1
– Learn the guidelines for designing databases and setting
field properties
– Create a table in Design view
– Define fields, set field properties, and specify a table’s
primary key
– Modify the structure of a table
– Change the order of fields in Design view
– Add new fields in Design view
– Change the Format property for a field in Datasheet view
– Modify field properties in Design view
• Session 2.2
– Import data from an Excel worksheet
– Create a table by importing an existing table structure
– Add fields to a table with the Data Type gallery
– Delete and rename fields
– Change the data type for a field in Design view
– Set the Default Value property for a field
– Add data to a table by importing a text file
– Define a relationship between two tables
• One-to-Many Relationships
– A one-to-many relationship exists between two tables
when one record in the first table matches zero, one, or
many records in the second table, and when one record in
the second table matches at most one record in the first
table
• Referential Integrity
– A set of rules that Access enforces to maintain consistency
between related tables when you update data in a
database
• Referential Integrity
– When you add a record to a related table, a matching record must
already exist in the primary table, preventing the possibility of
orphaned records
– If you attempt to change the value of the primary key in the primary
table, Access prevents this change if matching records exist in a related
table
– With the Cascade Update Related Fields option, Access permits the
change in value to the primary key and changes the appropriate
foreign key values in the related table
– If you attempt to delete a record in the primary table, Access prevents
the deletion if matching records exist in a related table. However, if
you choose the Cascade Delete Related Records option, Access deletes
the record in the primary table and also deletes all records in related
tables that have matching foreign key values