MS SQL developer wading into iSeries DB2 here.
I was asked to re-write some report SQL queries taking forever to run and they are enormous, joining dozens of tables etc.
However when I approached it by using typical MS SQL optimization steps, such as replacing NOT EXISTS with joins, I did not initially see any improvement. Should I bother or the optimizer is taking care of the obvious things like that?