[78-L] 78 database

Jeff Lichtman jeff at swazoo.com
Fri Jul 9 08:45:37 PDT 2010


>The problem is that database programs can/will ONLY accept possible
>dates in their date-type fields! This makes it impossible to enter dates
>which are incomplete or partially unknown.

One solution is to store the date as three separate numeric fields 
(year, month and day) and to store nulls where the values are 
unknown. For example, for April 13, 1927 one would store 4, 13 and 
1927; for April 1927 one would store 4, NULL and 1927, and for 1927 
(without a month or date) one would store NULL, NULL, 1927.


                        -        Jeff Lichtman
                                 jeff at swazoo.com
                                 Check out Swazoo Koolak's Web Jukebox at
                                 http://swazoo.com/ 




More information about the 78-L mailing list