Re: SQL Humor
Date: Fri, 19 Aug 2005 22:37:45 +0200
Message-ID: <8664u1hdd2.fsf_at_athene.hamartun.priv.no>
Joe,
as a long time satisfied reader of your books, I'd like to ask you specifically about this "IDENTITY is bad" thing of yours:
Say I do book-keeping for a club. Say I want to keep track of members, and their addresses, due payments, and other details. Say I can't legally ask them for their SSNs, and anyway would rather not. Now, "Joe Celko, 21 Cedar Drive, 12345 Smallville" may be all I have to identify a given person by. This is a pretty good candidate key (although it is not really guaranteed to be unique), but it is not something that is certain to be permanent. Worse, if I want to use it as a foreign key in a lot of tables, that means I'll be using a multi-column key all over the place, wasting storage space, and complicating any code that accesses the data.
Am I doing something stupid here? If so, why?
-tih
-- Don't ascribe to stupidity what can be adequately explained by ignorance.Received on Fri Aug 19 2005 - 22:37:45 CEST