I almost always do the WHERE part first, adding to the FROM part as I go, and then do the SELECT part and the ORDER BY part. Karl <kop at meme.com> Free Software: "You don't pay back, you pay forward." -- Robert A. Heinlein