Professional Documents
Culture Documents
&
DATABASE DESIGN
Mdm Hana.
PERFORMING JOINS
Inner join
Will retrieve all of the information from both the table
A and table B only where a match is made.
Example query:
SELECT * FROM urls, url_types WHERE urls.type_id =
url_types.type_id;
Foreign key
Serves as a “link” between data files/tables
A field in one file/table that serves as a primary
key in another file/table
How to determine the foreign key?
For a “one to many” relationship, the primary
key on the “one” side of the relationship is
added to the table on the “many” side
DATABASE DESIGN
Supplier ID Company Name Street Address City State
… … … … …
Product
table
Category
table
TERMINOLOGY SUMMARY
Easy to Academic
understand
The terms in each row
Table (File) Entity / have very similar meanings.
Relation