> Does anyone have some suggestions about good resources that could help guide me in designing the structure of the databases? <
>> Does anyone have some suggestions about good resources that could help guide me in designing the structure of the databases? <
>
> Database Design For Mere-Mortals by Michael Hernandez is a good start
> to get into this.
Oh, I didn't read it, but I flipped through it and saw this in chapter 8:
> Note
>
> I commonly create an ID field (such as EMPLOYEE ID, VENDOR ID, DEPARTMENT ID, CATEGORY ID, and so on) and use it as an artificial candidate key. It always conforms to the Elements of a Candidate Key, makes a great primary key (eventually), and, as you'll see in Chapter 10, makes the process of establishing table relationships much easier.
If that is how he constructs his other examples, his POV greatly limits
the scope of the book. I would not recommend it.
tongue-in-cheek reference:
http://thedailywtf.com/Articles/A_Truly_ID-iotic_Design.aspx
Ed Prochak - 01 Jul 2008 12:44 GMT
[]
> tongue-in-cheek reference:
>
> http://thedailywtf.com/Articles/A_Truly_ID-iotic_Design.aspx
I like it. A really good example of bad design.
Philipp Post - 01 Jul 2008 13:59 GMT
> I commonly create an ID field .... If that is how he constructs his other examples, his POV greatly limits the scope of the book. I would not recommend it. <
I agree that this is no good general advise. You could also argument
that fields should be called columns and records rows. These are some
flaws in it. However the big picture presented in the book points out
a right way in my oppinion. Further this is no advanced book, but a
first book for this and I understood that some reading from the start
was requested by the OP.
Everyone can taste it in google books and decide for his own.
Brgds
Philipp Post
Arved Sandstrom - 01 Jul 2008 14:34 GMT
>>> Does anyone have some suggestions about good resources that could help
>>> guide me in designing the structure of the databases? <
[quoted text clipped - 14 lines]
> If that is how he constructs his other examples, his POV greatly limits
> the scope of the book. I would not recommend it.
[ SNIP ]
Googling brings up an excerpt of that book (first page of Google results
when using "candidate" and "key" as search terms). At least based on that
excerpt it doesn't sound like he's advocating the willy-nilly creation of
surrogate keys. Possibly when he used the word "commonly" in the excerpt you
quoted, that he genuinely just meant "commonly"...as in, there was no
candidate key already, or what candidate key there was wasn't particularly
attractive.
AHS