Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Any side effects in allowing NULL?
Message
From
30/03/2012 14:50:23
 
 
To
30/03/2012 14:34:21
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01539772
Message ID:
01539859
Views:
64
>In some cases null is a must. Consider a lab result, where null means "was not done", and zero means "done, none found".

IMHO, this business logic should never be used like that. A status field should be used, which allows, by the same, the possibility of additional status.

So far, I haven't found any use to have NULLs in table. The only place I wasn't able to get rid of that, and only discovered last week, is the new Geography spatial data type of SQL Server which doesn't allow to put something else in there than a spatial data type data or NULL. So, I had to adjust my framework last week to take care of that exception, which in this case, when I create a record, for a table having a Geography field, I would allow NULL.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform