Explore chapters and articles related to this topic
Development of a worldwide ferry safety database utilizing relational database approach
Published in Journal of Transportation Safety & Security, 2019
Siyu Xu, Hao Hu, Roberta Weisbrod
An entity is mapped to a table in a straightforward way, where attributes of the entity are transformed into the fields of the table and the primary key used to uniquely identify each record in the table is bold and underlined. With respect to relationships, a typical way to handle the one-to-many relationship is to insert a foreign key into the table that represents the “many” side of the relationship. And a many-to-many relationship needs to be transformed into bilateral one-to-many relationships by creating a separate bridge table. The attributes of such a table contain the primary keys of participating entities and the descriptive attributes of the relationship.