Sorry, but there are no more tags available to filter with.
stupid select f1 from t where ltrim ( rtrim (f2)) != '' not stupid select f1 from t where ltrim (f2) != '' why? you could use ltrim or rtrim by itself. why are you trimming both sides when you are searching for an empty. if it trims to empty, then either...
today's item of stupidity is the dynamic orderby clause. i see this particular abomination all over the place when i'm refactoring procs, reports, etc. firstly, why is this bad? firstly, most people include a null check and then build a dyanmic sql statement...
stupid @@identity not stupid scope_identity ()