19.10.2015 Views

workbench-en.a4

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Docum<strong>en</strong>ting the sakila Database<br />

As the connection lines show, each table is related to at least one other table in the database (with the exception of the film_text<br />

table). Some tables have two foreign keys that relate to the same table. For example the film table has two foreign keys that relate<br />

to the language table, namely fk_film_language_original and fk_film_language. Where there is more than one<br />

relationship betwe<strong>en</strong> two tables, the connection lines run concurr<strong>en</strong>tly.<br />

Id<strong>en</strong>tifying and non-id<strong>en</strong>tifying relationships are indicated by solid and brok<strong>en</strong> lines respectively. For example, the foreign key<br />

category_id is part of the primary key in the film_category table so its relationship to the category table is drawn with<br />

a solid line. On the other hand, in the city table, the foreign key, country_id, is not part of the primary key so the connection<br />

uses a brok<strong>en</strong> line.<br />

10

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!