Re: What gives data meaning?



frebe wrote:
<snip>
If you think about it, neither zip code means anything to the database.
They're simply characters in a field.


With a proper type system or check contraints, a RDBMS could guarantee
that no invalid zip codes are stored into the database. If we want to
store zip codes for multiple countries, one solution is to have
different relations for different countries with different domains/
types for the zip code attributes.

But you quickly approach the DB designer's version of Heisenberg's
uncertainty principle. How does the DB know it has all zip code formats
to test against? How does it know what all the valid zip codes are? As
soon as it's measured and implemented how does the DB know a new zip
code wasn't created in some growing suburb of Zurich?

As the DB more rigorously guards what it can not be certain of, it
creates obstacles, bugs, or simply starts getting in the way of people
who are certain of what they're doing.

Is there some definite point beyond which a DB designer should stop
creating constraints? Is there a point of diminishing returns? How
much effort should be asserted to know the exact value, set of values,
and potential values of every field in the database? At some point
mightn't even the post office shrug its shoulders and deliver a letter
to a destination country and let them figure-out its address if they
don't recognize anything but the country?


--
Visit <http://blogs.instreamfinancial.com/anything.php>
to read my rants on technology and the finance industry.
.



Relevant Pages

  • Re: Basic application design
    ... simultaneously by users in all four countries. ... Database is in one country where the internet is excellent. ... If we go for an ASP net based solution, then the server hosting the ...
    (microsoft.public.dotnet.languages.vb)
  • Re: WHY
    ... as easily as you can put it in a spreadsheet? ... Rates are defined BETWEEN two countries. ... > countries to determine the respective exchange rate basis (and I hope ... > And this is something you can't directly translate to a database. ...
    (microsoft.public.excel)
  • Re: How can I organize my database?
    ... in a relational database, you don't want to do this. ... > chance to put more countries and more regions for each agency at the same ...
    (microsoft.public.access.tablesdbdesign)
  • Re: How many names and addresses can you have for ID card
    ... But a German database, or an American one, would be orders ... but not about other countries. ... you don't think a German or American-designed database would be ... If you associate with the wise, ...
    (uk.legal)
  • RE: Its a filter but not a filter
    ... Your needs are best met if you treat your source data as a database and ... performa query against it. ... data from an Access database, but you can just as easily substitute your ... for the countries I'm interested in. ...
    (microsoft.public.excel.worksheet.functions)