Re: quick FK question
- From: Yong Huang <yong321@xxxxxxxxx>
- To: Gints Plivna <gints.plivna@xxxxxxxxx>
- Date: Wed, 23 Dec 2009 07:30:58 -0800 (PST)
> As soon as fake value becomes normal business value problems might
> arise. I'd personally better deall with NULLs because this is
> WIDELY understand concept both by developers and DBMSes compared
> to some specific value representing NULL, which is -1 for project1,
> 0 for project2 and 187913267532 for project3.
I agree. When I do data modeling, I personally never use a fake value
for a simple missing value (as for reason of avoiding outer joins). But
if multiple special values are needed in the design, and the developers
agree, I could use e.g. -1 for generally unknown, -2 for lost, -3 for ...
In this case, a single NULL couldn't satisfy the business need, and an
additional column for these special values would be a little too wasteful.
Yong Huang
--
http://www.freelists.org/webpage/oracle-l
- Follow-Ups:
- Re: quick FK question
- From: Robert Freeman
- Re: quick FK question
- References:
- Re: quick FK question
- From: Gints Plivna
- Re: quick FK question
Other related posts:
- » quick FK question - Sweetser, Joe
- » Re: quick FK question - Stephane Faroult
- » Re: quick FK question - Guillermo Alan Bort
- » RE: quick FK question - Sweetser, Joe
- » Re: quick FK question - Gints Plivna
- » Re: quick FK question - Rumpi Gravenstein
- » Re: quick FK question - Guillermo Alan Bort
- » RE: quick FK question - Mark W. Farnham
- » Re: quick FK question - Gints Plivna
- » Re: quick FK question - Rumpi Gravenstein
- » Re: quick FK question - Rumpi Gravenstein
- » Re: quick FK question - Cary Millsap
- » Re: quick FK question - Robert Freeman
- » Re: quick FK question - Robert Freeman
- » Re: quick FK question - Robert Freeman
- » Re: quick FK question - Yong Huang
- » Re: quick FK question - Yong Huang
- » Re: quick FK question - Rumpi Gravenstein
- » Re: quick FK question - Gints Plivna
- » Re: quick FK question - Yong Huang
- » Re: quick FK question - Robert Freeman
- » Re: quick FK question - Robert Freeman
- » Re: quick FK question - Robert Freeman