Optimizing Oracle SQL: From 8 Seconds to 500ms

How I took a critical query from 8 seconds down to 500ms (a 16× speedup) through indexing, execution plan analysis, and a few hard-earned lessons.