@DOA said:
I'll reply Jeopardy style.
"Why do we always keep a close eye on the junior programmer?"
It's an unfortunate situation. When I have time I check up on her, which leads to one part amazement one part amusement and eight parts getting drunk. Somewhere in there I try to educate, too, but after three years I've more or less given up on further improvement.
@dhromed said:
Is she hot?
Sadly, no, and she's twice my age, too.
@blakeyrat said:
Wow. Is there a slower way to write that query?And of course the real WTF is that I'm sure they were going to use that retrieved ID, add one to it, and insert a new record... which would mean the column isn't set up to autonumber either. I can't think of any reason to have a query like that.
It's not as bad as all that since the table (and entire database) was mine originally, so I know it's not completely broken (or if it is it's my fault). This is, sadly, not the craziest SQL I've seen from this person, just the most obviously incorrect.