Click here to Skip to main content
15,914,820 members
Home / Discussions / Database
   

Database

 
GeneralRe: primary key Pin
Eddy Vluggen23-Jul-10 4:55
professionalEddy Vluggen23-Jul-10 4:55 
QuestionDatabase Normalisation Pin
Euhemerus22-Jul-10 9:00
Euhemerus22-Jul-10 9:00 
AnswerRe: Database Normalisation Pin
David Mujica22-Jul-10 10:56
David Mujica22-Jul-10 10:56 
GeneralRe: Database Normalisation Pin
Euhemerus22-Jul-10 11:05
Euhemerus22-Jul-10 11:05 
AnswerRe: Database Normalisation Pin
Mycroft Holmes22-Jul-10 14:21
professionalMycroft Holmes22-Jul-10 14:21 
AnswerRe: Database Normalisation Pin
Goutam Patra22-Jul-10 22:00
professionalGoutam Patra22-Jul-10 22:00 
AnswerRe: Database Normalisation Pin
R. Giskard Reventlov22-Jul-10 22:43
R. Giskard Reventlov22-Jul-10 22:43 
AnswerRe: Database Normalisation Pin
Eddy Vluggen22-Jul-10 23:16
professionalEddy Vluggen22-Jul-10 23:16 
Your teacher is right, 3NF would be the minimum requirement before I'd call it a well-designed database. You are right too; in the real world, databases are created when needed, and grow over time - not all of them are designed upfront.

Whenever I can, I try and normalize. Your example would make it very hard to get the complete address-details of the customer, since you'd be seeing a similar construction with ZipCodes and streets.


Digital Thunder wrote:
would you leave the three different telephone attributes in the customer table and invite null entries?


You don't want to do this;
SQL
SELECT ([phone1], [phone2], [phone3]) from ..


Before you know it, customers will want to add extra information, like a short description (e.g. "this number only between 1 and 5 am") or a bool column to flag disconnected lines.

That would lead to a
SQL
SELECT ([phone1], [phone1desc], [phone2], [phone2desc], [phone3] ..


Might not sound very useful in this particular example, but I'm sure that most of us had to update a similar database at least once in their career. Imagine you have a table that all of a sudden would receive four or five more attributes Smile | :)
I are Troll Suspicious | :suss:

GeneralRe: Database Normalisation Pin
Euhemerus23-Jul-10 3:09
Euhemerus23-Jul-10 3:09 
GeneralRe: Database Normalisation Pin
Eddy Vluggen23-Jul-10 9:13
professionalEddy Vluggen23-Jul-10 9:13 
GeneralRe: Database Normalisation Pin
Euhemerus23-Jul-10 10:08
Euhemerus23-Jul-10 10:08 
AnswerRe: Database Normalisation Pin
PIEBALDconsult23-Jul-10 7:34
mvePIEBALDconsult23-Jul-10 7:34 
GeneralRe: Database Normalisation Pin
Corporal Agarn23-Jul-10 8:21
professionalCorporal Agarn23-Jul-10 8:21 
GeneralRe: Database Normalisation Pin
Euhemerus23-Jul-10 9:17
Euhemerus23-Jul-10 9:17 
GeneralRe: Database Normalisation Pin
PIEBALDconsult23-Jul-10 9:42
mvePIEBALDconsult23-Jul-10 9:42 
GeneralRe: Database Normalisation Pin
Euhemerus23-Jul-10 10:02
Euhemerus23-Jul-10 10:02 
GeneralRe: Database Normalisation Pin
PIEBALDconsult23-Jul-10 10:03
mvePIEBALDconsult23-Jul-10 10:03 
GeneralRe: Database Normalisation Pin
Euhemerus23-Jul-10 10:15
Euhemerus23-Jul-10 10:15 
QuestionGet Max Number for each department Pin
SatyaKeerthi1521-Jul-10 19:49
SatyaKeerthi1521-Jul-10 19:49 
AnswerRe: Get Max Number for each department Pin
Mycroft Holmes21-Jul-10 20:01
professionalMycroft Holmes21-Jul-10 20:01 
GeneralRe: Get Max Number for each department Pin
SatyaKeerthi1521-Jul-10 20:28
SatyaKeerthi1521-Jul-10 20:28 
GeneralRe: Get Max Number for each department Pin
Mycroft Holmes21-Jul-10 20:56
professionalMycroft Holmes21-Jul-10 20:56 
GeneralRe: Get Max Number for each department Pin
Goutam Patra21-Jul-10 20:32
professionalGoutam Patra21-Jul-10 20:32 
GeneralRe: Get Max Number for each department Pin
Luc Pattyn21-Jul-10 20:36
sitebuilderLuc Pattyn21-Jul-10 20:36 
QuestionAccess Form - datasheet view, which OnEvent Pin
john john mackey21-Jul-10 11:22
john john mackey21-Jul-10 11:22 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.