eor: (Harold)
[personal profile] eor
I do a lot of troubleshooting/refactoring of database queries. By themselves they don't amount to much of anything, but when they all start working together small inefficiencies turn into large inefficiencies. I've resisted sharing some of my favorite things because they're pure geek and very few people will find the humor in them. But tonight I can't resist because I found one that is just too good bad to be true.

From a real SQL stored procedure, I couldn't make this stuff up, table names changed to protect the guilty:
Set @SCENCode = (Select Code From the.table Where Num =@Scenint)
Set @Scen =(Select num From the.table Where Code =@SCENCode)

Obfustication: 1
Inefficiency: 2
Utter Uselessness: 5
(will be screened)
(will be screened if not validated)
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

If you are unable to use this captcha for any reason, please contact us by email at support@dreamwidth.org

Profile

eor: (Default)
eor

December 2025

S M T W T F S
 123456
78910111213
1415 1617181920
21222324252627
28293031   

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Jan. 6th, 2026 12:36 pm
Powered by Dreamwidth Studios