Quote:
Originally Posted by daveT
Sounds so much like my first few databases. Wow, they were terrible.
Yeah I've seen things you wouldn't believe, c-beams, attack ships etc.
One of my favorites was a DBA who insisted that every column in a table begin with the name of the table, that way, in every query you could tell what table a column came from.
At my last job, again, it was really hard to modify existing tables, but easy to make new ones. So we had like 9 tables that held "user" settings, i.e. a 1-to-1 mapping to the main user table. This is of course propped up by the ORM, the average user of the ORM models doesn't even know this is happening. Some of these tables were 2 columns: user_id + whatever new setting.
I interviewed someone once, and asked him to make a little program that would track books - basically it would have like author, title, publish date, isbn, etc. He made a structure where the 1st row in the table was title, the 2nd was author, the 3rd was publish date, etc. To add a new book, he used "alter table add column", i.e. each book was a new column. He was, apparently, way ahead of his time.