Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: Oracle NULL vs '' revisited
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Tony Rogerson wrote:
>> The point was to demonstrate the surrogate keys are worthless >> for purposes of data integrity with most data. What ends up >> happening is that unique constraints are then built, on top of >> the surrogate key, in an attempt to do what the surrogate can >> not.
You seem to have it backwards - the mantra is "if keys can change, it is likely an attribute, not a key".
You prove Daniels point, by demonstrating natural keys change
(and *thus* *should* not have been used as keys)
>
> You seem to be under the impression that "Natural keys can not change".
>
The should not, when used in programs. This is different from the
fact they change.
Loosely quoted, you stated "ISO country codes are not keys, as
they change".
Well - if you knew that from the start (and you should) - if
used in a system, that is not expected to cope with those changes,
it is acceptable.
For Customs, I'd advise not to use it as a key, but just as a value.
It seems you gentlemen are in agreement, you are just looking at
the question at hand from two different angles.
- --
Regards,
Frank van Bortel
Top-posting is one way to shut me up...
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (MingW32)
iD8DBQFGz/d4Lw8L4IAs830RAuzDAJ0UuTfC9gvuKvjqy4ryJthZenaIRgCglPLt
rARHCD/nNf6/57PJnUyWYl4=
=iDob
-----END PGP SIGNATURE-----
Received on Sat Aug 25 2007 - 04:33:44 CDT
![]() |
![]() |