C
coffeeman
How would I remove all data from northwinds template.
The link is not available. There is a notice telling the owner to call a
number. Perhaps domain name registration has expired or some such thing.
[quoted text clipped - 71 lines]However, do note that the Customers table in Northwind is not properly
normalized. The following is a simple summary of basic normalization, and
Now, I suppose that the combination of City + Region
could be unique, but there is no guarantee of that, and indeed no requirement.
John_G said:Hi Ken -
I know this is a bit off-topic for the thread, but I disagree with you that
the Northwind Customers table is not properly normalized, at least with
respect to City, Region and Country. All of those are needed in that table
to properly describe an address. You are assuming that there is ony ONE São
Paulo (or any other city name) in the world, in which case you would be
right. But there are probably many São Paulo's, so each São Paulo address
must specify which São Paulo it is. An example closer to home, if someone
says to me "I'm going to London" I have to ask them "London where - Canada or
England?". Similarly, in Canada we can have the same city name in two or
more provinces (Region). Now, I suppose that the combination of City + Region
could be unique, but there is no guarantee of that, and indeed no requirement.
I think we have to leave the Customers table as it is.
Cheers!
John
[quoted text clipped - 6 lines]... An example of its lack of
proper normalization can be found in its Customers table. You'll see thatPaulo is in SP region would be stored only once in the database as would the
fact that SP region is in Brazil and California is in the USA.
Taking a couple of rows at random Great Lakes Food Market is in Eugene which
is in Oregon which is in the USA. Hungry Coyote Import Store is in Elgin
which is in Oregon which is in the USA. So we are told twice that Oregon is
in the USA.
That is redundancy and leaves the door wide open to inconsistent
data. Its perfectly possible to update one of these by changing USA to UK,
both incorrectly and inconsistently.
Country is determined by Region
city names these can be legitimately duplicated, so the table should have a
numeric CityID column referencing a surrogate CityID primary key of Cities.
... He'd entered the
birthplace of my great-grandmother (the only non-Irish member of my family in
that generation) as Cumberland, Scotland, whereas it is in fact in England
(not far from the border, its true, but England all the same). Now if only
he'd been using a database with well normalized tables, he'd have got it
right!
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.