Editing Relationships

Now that the tables have been created, the relationships between the tables have to be specified.

Click on Create New. Create New allows you to specify the table and the table entries for creating the relationship.

Choose Student as the left table and Takes as the right table. Within the table choose SSN as the left column name and SSN as the right column name. Click on OK. The Student table is related to the Takes table.

·        Cascade Update Related Fields – this ensures that when you change data in the parent table, data corresponding in the child table will be changed/updated also. 

·        Cascade Delete Related Records – this will delete data in the child field when the corresponding data has been deleted in the parent field.  

We will not be using these options. Click on OK.

 

This sets a One-to-Many relationship between Students and Takes.

 

Main | Prev | Next