The following sections demonstrate some popular methods for obfuscating conditions. Obfuscated conditions are where
clauses that are phrased in a way that prevents proper index usage. This section is a collection of anti-patterns every developer should know about and avoid.
Obfuscated Conditions
Contents
Dates — Pay special attention to
DATE
typesNumeric Strings — Don’t mix types
Combining Columns — use redundant
where
clausesSmart Logic — The smartest way to make SQL slow
Math — Databases don’t solve equations
You can’t learn everything in one day. Subscribe the newsletter via E-Mail, Twitter or RSS to gradually catch up. Have a look at modern-sql.com as well.
About the Author
Buy the Book

The essence of SQL tuning in 200 pages
Buy now!
(paperback and/or PDF)
Paperback also available at Amazon.com.
Hire Markus
Markus offers SQL training and consulting for developers working at companies of all sizes.
Learn more »