Download Growing Better Software
Transcript
69 This may seem a bit confusing at first, so let us take a look at an example. We will create a simple, onetable telephone book database. As multiple people can have the same name, we identify them by a separate key, which we will call person_id. This is not required for phone numbers, because they are their own identification. So, our simple phone book looks as follows (according to principle 1): Table person person_id (primary key) person_name phone_number 1 P. Fink 5555782 2 M. Plow 5553226 A new requirement just got in: Some people have more than one phone number, and we must be able to store it. As the field person_id is a primary key, it can not be duplicated in the table. We have two options: One is to add another phone number column (this is a step in the wrong direction, as discussed in previous chapters), and the other is to separate phone numbers from people. This will give us the following: Table person person_id (primary key) person_name 1 P. Fink 2 M. Plow
Related documents
Database driven user friendly web application using Ajax
Using the TV`s Features
Deliverable 5.2 - Evaluation of Core Framework
Administrator`s Guide
ThaiEasyElec - 2.8-inch TFT Touch Shield -EN
Java booking system - School of Computing
Digital Solutions
RCA F27350 Flat Panel Television User Manual
Model AC8000-8001-8001.1 Updated 2009 Manual
STP 55-88N14-SM-TG
HD24tools manual ()