- 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
Did it have Ruritania?
Admin
Admin
And, even though it serves just about no purpose unless you read old Marxist literature and need to know when the 18th Brumaire of Napoleon III was, there is support for the Revolutionary Calendar in many date libraries today. Just like most computing languages allow for the fact that different jurisdictions switched to the Gregorian calendar at different times. Even creating new months is not a case for stuffing random values into a database table.
Admin
This a... just... fucking insane.
I can't say if my eyes are bleeding... I don't feel no more.
Admin
The REAL WTF is that you have a table called "month"?
Why the hell would you need a table for that? For if someone invents a new month someday, so that you can easily add it? Or for when January is going to be renamed to something else?
Admin
Needs a 'FileNotFound'
Admin
All these nageshes are getting tiresome. Also "ain't" is cockney (native Londoner) pronunciation, not Indian IN ANY POSSIBLE WAY. So pls just stop it
Admin
If the table was structure in an application or something sure but this is a SQL database table. In order to imply a numeric value from the Sequence in the table you will lose the ability to join it directly. The cost of having a function/procedure/cursor called from queries to figure out that number is going to grossly exceed the cost of storing it; at least for something with a pretty finite number of values like "month" and in almost all other situations as well.
Admin
You ain't right to be so bad about people of Hyderabad.
Admin
Chaos Discord Confusion Bureaucracy The Aftermath
...are all missing
Admin
Alex should take one fatwa and ban all unregistered Nagesh user names. That will take teach him a lesson.
Admin
If you really don't understand the value of a numbers table, you should probably leave the database stuff to the professionals.
Admin
TRWTF is using select * from
Admin
Had this team used Agile development, you'd never see data like this in the database. At the end of every sprint, a team goes through a retrospective. Junk records in the data table would surely be uncovered at that time.
Admin
You know it's sad when those fucking values actually have a purpose and deleting them would fuck up something else.
Admin
Why would they allow users to submit any information that would affect column names??
And they forgot Wyoming...
Admin
I mean, imagine if you were writing a program that dealt with numbers back when they were coming up with imaginary numbers. (If they had computers then, I mean. Would have been way harder to develop without imaginary numbers though. (By my understanding this is actually true.)) If you planned ahead, all you'd have to do is add a bunch more rows to your NUMBERS table.
Admin
We are all using Agile, but no project manager is able to define Agile goal.
Admin
It's a feature of MySQL. Only in interactive mode.
Admin
Came here for Smarch reference ... leaving satisfied.
/Lousy weather in Smarch ...
Admin
[quote user="Codd"][quote user="AN AMAZING CODER"][quote user="Codd"]Please note I said "The numbering is implied by the sequence of the entries as stored in the table." That isn't going to change randomly every time you do a month lookup.[/quote]
If you're not in fact trolling, you need to revisit relational model. A table (relation) is a set of unordered tuples.
Admin
This is obviously not user-entered data. The string "penis" is not represented.
Admin
OMG.. Thanks ya'll :) I just spit my coffee all over my monitor.. It needed cleaning anyway, and now it smells like coffee. :P
Admin
Naaahhh - had they been agile, they would have added a new month per sprint (adding more than one month would not be need to fulfill requirements for this sprint), so you would end up with:
January February March ... December Next January Next February .. Next again January
etc, until they ran out of product backlog, or their customer got fed up
Admin
Data rot.
Looking forward to the days when this becomes so prevalent, that when data rot, or "PLAQUE" as it shall be known as, is such a serious problem that we instantly excise any table, host, network, or country that displays such, from the rest of the network, and then nuke it to prevent it's plaque from spreading.
I think we need to start with the database that this table came from. :)
Admin
What? Where's the "File Not Found" entry?!?
Admin
Technically it is, since Sun Microsystems has bought MySQL AB and Oracle has subsequently bought Sun...
What we have here is... Oracle MySQL.
Admin
That table is auto populated from user entries in a field. Then the content of the table is used to present choices for the field in a dropdown list.
It has been a common practice in Ms Access.
(of course, it had been better to first populate the table with consistent values and disable the auto-update feature)