Professional Documents
Culture Documents
5. List and briefly explain the three types of table relationships. Support your answer with
an example of each relationship type.
One to one relationship is not common in table relationship and one table can have
only one matching record in in other table. E.g. Department table and HOD table.
One department can have only one HOD.
One to many relationship is established when one table have many matching record
in the other table. E.g. Student table and Course table. One student can take many
course
Many to many relationship is established when each table have many records
between them. That is, table 1 can match many records in table 2 and table 2 can
match many records in table 1. It can be possible by establishing a junction table.
E.g. The orders table and the products table. A product can have different orders
and someone can order different product.
7. The use of Cascade Update Related Fields and Cascade Delete Related Records can
override some restrictions. Briefly explain the use of these two options.
Cascade Update Related Fields is set for the purpose of changing primary key so to
automatically updates the matching value in all related records.
Cascade Delete Related Records is when the check box is set, it deletes any related
records in the related table when records in the primary table is deleted.