I usually take one table after another and write the sql anew the way I want (copying what is already good). That servers two purposes. 1) I get to write the SQL such that it is easier to work with it in the tuning phase, and 2) I usually learn more about the SQL that I do from just trying to reading it. A third benefit may be that I can make sure the explain plan looks acceptable after each table is added and not trying to fight a large complexity immediately. Mathias On Sun, Apr 19, 2009 at 9:09 AM, Ram K <lambu999@xxxxxxxxx> wrote: > Hi > > I ran into a big SQL that was several pages yesterday. Are there any > strategies and tips to understand first and then later tune such SQLs. I > realize this is a broad question. One approach I can think of is divide and > conquer. > > Ram. >