Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Null vs. Zero for Primary Key
Message
From
19/01/2011 16:08:02
 
General information
Forum:
Microsoft SQL Server
Category:
Database design
Miscellaneous
Thread ID:
01496573
Message ID:
01496589
Views:
52
Hmmm, food for thought. My instinct is to say an unknown cost center should be stored as Null, not assigned to a bogus cost center. To me that's the definition of Null -- we don't know. Maybe your way makes it easier for OLAP tools and you are approaching this from a practical rather than theoretical POV.


In environments where DBAs increasingly deal with new feeds, acquisitions, new labels, etc,, the need to report on unassigned, irregulars, not applicables, etc. goes way up. In some circles it's a must. Like I said, I've known people who came to regret their initial stance on storing nulls in FKs.
Previous
Reply
Map
View

Click here to load this message in the networking platform