eor: (Harold)
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

Profile

eor: (Default)
eor

February 2025

S M T W T F S
      1
234 5678
9101112131415
16171819202122
232425262728 

Syndicate

RSS Atom

Most Popular Tags

Page Summary

Style Credit

Expand Cut Tags

No cut tags
Page generated Jul. 9th, 2025 09:09 pm
Powered by Dreamwidth Studios