- 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
Dup?
Admin
I'm sorry, I'm missing something here. Whats the SQL refrence?
Admin
Thus the "Classic Week" Title!
WTF? Can't anyone here read?
Admin
Look at the jpeg. right after the ingredients listing.
Admin
its a package you would get in a store. rather than saying like Made from Facility 5, the sql code was returned rather than the data it would of returned. silly!!!
Admin
Haha!
Admin
SQL is so 1990s, where's my MDX chocolate?!?
Admin
awesome!!!
Admin
Instant classic!
Admin
Packed in an environment where Gluten, Nuts, Sesame seeds and slightly dodgy SQL code may be present.
:P
Admin
Perhaps they should idiot-proof it and change the title from Classics Week to We know these have been posted before, but we're re-running some oldies but goodies so please STFU week
Admin
Admin
The real, uh, failure is that they seem to be using an Access DB.
Admin
Sweet!
Admin
This one was my favorite. I remember reading it as I was writing a query.
/captcha smile :D
Admin
lol, thats funny
Admin
"idiot proof it"
No, just say: "Classics week! To report dups, bang head here --> * "
Admin
Frito-Lay has a new dip that includes the ingredient DATEM.
Yeah, I know it is an emusifier, but it always looks like a print code error to me.
Admin
Oh, and just for clarity... we are selecting from a TABLE... SELECT * FROM Equipment just wasn't clear enough.
Admin
The current syntax is scarcely better, though. When one robot Selects the [Equipment Table], the other robots don't have anywhere to put their error printouts before photographing them.
Admin
Haha, nice. Anyway, if they're gonna go for "classic" articles, they should go for articles from before this year, no?
Admin
That's not SQL, that's MS SQL and there's a big difference. One's a standard the other is as incompatible with that standard as possible while plausibly retaining the name. It bears a passing resemblance at best.
Admin
Perhaps they could just change is using a find and replace?
You know, like when you click http://thedailywtfthedailywtfthedailywtf.worsethanfailure.com/Default.aspx
Note my find, of course, but damn funny.
Admin
Damn... s/Note/Not/ in previous post.
Admin
Did anyone else notice the space in the table name and the space in the column name????
Admin
Yip. Not very elegant, but totally permissible, hence the square brackets around the names.
Admin
I think that allowing spaces in tables/columns is the most horrible idea evar! evar!
Admin
A wise man once taught me: "Don't waste your time trying to make things idiot proof. Instead, aim to make them fool resistant."
Admin
lol, true. But it's not a big difference. Just use the current ansi standards and don't use spaces. voila. (although CTPs are handy)
Admin
Huh? What's wrong with this? I know I always do:
void fooFunction(void);
struct barStruct;
class foobarClass;
int fubarInteger;
float fuFloat;
someTypeClass barfooObject;
On a related note, I also like the following typedefs in C:
#define ONE 1 #define TWO 2 #define THREE 3 #define FOUR 4
Admin
Obviously too early in the morning as these are clearly not typedefs :-)
Admin
Say what, bill?
If MSSQL isn't standard enough for you, who is?
IBM and Oracle hardly implement a perfect SQL1999 or SQL2003 either.
In fact, I don't know that anyone implements a complete "standard" SQL (and if so, which version? 99? 2003? 92? earlier?)
(Don't like the T-SQL extensions? Nobody's forcing you to use them - MS won't make you, as near as I can tell.)
Admin
Only database I know that even tries to implement something other than SQL_old standard is www.nexusdb.com.
Admin
Only database I know that even tries to implement something other than SQL_old standard is www.nexusdb.com.
Admin
So, the WTF is that they used SELECT *, instead of enumerating the column names, right?
Admin
No, the WTF is that SQL code is showing up on packaging.
Admin
Thanks for enlightening him on that one dude, I think you really made a difference in someone's life today
Admin
Dude!
Admin
Click... Click... Click... Doesn't do anything.
Admin
Admin
Derby is the most SQL compliant DB I've dealt with. IIRC, it's SQL92 they use, but it's been a while so I don't remember.
Admin
Ever get the feeling that some people might be trying to be funny by saying these posts are repeats?
Admin
What's mine say?!?
Admin
<That I am an idiot that can't quote correctly ;)>
Admin
Yeah, with the bracketed, space-containing field names, it's got to be Microsoft SQL Server or MS Access. I think the semicolon at the end clinches it for Access.
Admin
Would have returned. But other than that, yes.
Admin
The wtf for me is, this is all I see:
Is there supposed to be an image or something? If it's an external link, I'm betting it's Websensed.
Websense. It so makes me want to get back to work.
Admin
I'm just saying.
(not first; not telling you my captcha; not end-of-file)
Admin
SELECT * FROM comments WHERE article = 'Classics Week: Chocolate Covered SQL'
Admin
Wow, if the Quality Control is this good for the packaging, imagine how good the chocolates are!