If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > General > Database Concepts & Design > handling unknown dates

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-15-11, 10:48
Hotaru Hotaru is offline
Registered User
 
Join Date: Mar 2008
Posts: 2
Question handling unknown dates

I've got on my hands a paper database with records from 1955 to now. Recordkeeping was sloppy for a long time, up until 1984. Handwritten cards often had just month and year since the date wasn't considered that important, but rubber stamped cards would have full date. A few cards suffer from smudges, poor handwriting, etc. but not that many.

It would be great if a database would accept 1971/8/0 as August ??, 1971 and 1959/0/0 if only the year is extant (probably few or no such cards). Making separate day/month/year columns seems workable if not a little unwieldy. Are there better ways to handle the situation?
Reply With Quote
  #2 (permalink)  
Old 03-15-11, 11:54
r937 r937 is offline
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,524
Quote:
Originally Posted by Hotaru View Post
It would be great if a database would accept ...
mysql does
__________________
r937.com | rudy.ca
please visit Simply SQL and buy my book
Reply With Quote
  #3 (permalink)  
Old 03-17-11, 12:10
blindman blindman is offline
World Class Flame Warrior
 
Join Date: Jun 2003
Location: Ohio
Posts: 11,726
In any database platform, you should be able to default records with missing years to a default year, and records with missing dates to January 1st. The logic is not complex, but you will need to apply it as the records are being inserted.
__________________
If it's not practically useful, then it's practically useless.

blindman
www.chess.com: "sqlblindman"
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On