- Feature Articles
- CodeSOD
- Error'd
- Forums
-
Other Articles
- Random Article
- Other Series
- Alex's Soapbox
- Announcements
- Best of…
- Best of Email
- Best of the Sidebar
- Bring Your Own Code
- Coded Smorgasbord
- Mandatory Fun Day
- Off Topic
- Representative Line
- News Roundup
- Editor's Soapbox
- Software on the Rocks
- Souvenir Potpourri
- Sponsor Post
- Tales from the Interview
- The Daily WTF: Live
- Virtudyne
Admin
A couple of comments on cleaning up this mess (hey it keeps you employe-ed!)
Admin
+1000! I run in to this more times than not in my job. The sales dept makes promises for new features and such just to land big deals, then the development dept is expected to implement them, usually in a relatively short amount of time (days, weeks), and we usually don't get bonuses for doing it, just thank-you and good-job emails.
Admin
Admin
I know someone who could have designed something like this, because he has a twisted brain. Not gonna name names, of course.
Admin
Admin
Yes, they ask questions about both 'sex' and 'gender'.
Just remember that when asked "Sex?", the answer is always "Yes!".
Admin
While the data looks like it is a bit of a mess, in terms of importing the data it looks to be a pretty simple job as far as these things go.
Admin
Child comes home from school after first day. That evening: "Mummy, what's sex?"
The mother already knows that this child is seriously precocious and educationally advanced, but is a little disturbed that this seems somewhat early to be asking such a question, thinks the mother. The poor child must have been picking up rude talk in the playground. But, being modern and liberated and having made a decision to always, always be honest with her children, she sits the child down and explains the long and lovely story of where babies come from.
The child holds up a partially-filled-in form, and says, "How am I supposed to fit all that into this little box?"
Admin
One of our customers, a large casino, has been monitoring their data quality. In my country, the first six digits of our national ID number is the birthdate, yymmdd. When a new customer signs up, ID number and birthdate are both required fields. Turns out that last month, fully 5% of customers filled in a DOB which didn't match their ID number.
People are idiots.
Admin
You've missed out XXXX, XXXY, XXYY, XYYY, XXXXX, XXXXY, XYYYY. And I'm sure there are more.
I daresay there is nothing physically preventing XXXXXXYYYYYYY other than statistical unlikelyhood, and high probability of early foetal termination.
Admin
No hate. You're just an easy target, what with you being so thick.
Anyway, I like acid.
Admin
Only thing thick about me is my sinewy arms and thighs.
Admin
PS. Learn sed, awk, tr, sort and uniq.
Admin
The truth comes out: Nagesh is a trained seal.
Admin
capta: OPTO Herby may want to OPTO[ut] of that offer.
Admin
Ah, but you are LOADing the data for MOTHERs, so thus it is indeed a mother-load :)
Admin
I fail to see the WTF here.
But that's only because I've been victimized far worse for so long now by our very own file imports, such that the sales people have literally brain-washed me into believing this is the only way we'll ever function as a company.
Admin
And then the handsome prince should rescue the beautiful princess from the evil troll, and they get married and live happily ever after while unicorns frolic in the pasture.
I think that's how fairy tales like this usually end.
Admin
This is required for internationalisation. If it is a child from germany, the table holds
Column Name Sample Data gender "Junge", "Mädchen" heshe "er", "sie" himher "ihm", "ihr" hisher "sein", "ihr" sondaughter "Sohn", "Tochter"
This is clever, isn't it? I mean, have a look at http://arnoldzwicky.files.wordpress.com/2012/04/germanarticles.jpg. Do you really want to implement that?
Admin
Admin
I'm crying a little bit right now...
Admin
What a crappy design. However, a few "SELECT DISTINCT" statements should give you all the values for a proper ETL process with conversion.
Then you add a few validation queries.
Problem solved.
Admin
I absolutely agree that importing this data is not really more complex then any properly normalized database. But the fact that these tables were used in a production environment of a paid (and expensive) application is a bit sad to say the least... "Does it work?" -Yes it works. "Then do release!" -Uh okay...
There are many accidents luring just around the corner for databases like this, especially for the new guy...
Admin
this is probably the easiest database optimization and migration I ever seen.
ur so lucky....getting good money for this kind of stupid work..