• If you have to be a ludite and use a text editor to develop SQL, rather than as suggested by another responder - use GUI it's easier - then it would also be advisable to make a distinction between table and column names and SQL RESERVED WORDS. The best way I have seen so far is :-

    SELECT Column_Name_1

    ,Column_Name_2

    ,MAX(Column_Name_3)

    FROM tbl_Name

    WHERE Column_Name_1 > 0

    AND Column_Name_2 > 0 .....etc.....

    GROUP BY Column_Name_1

    ,Column_Name_2

    Not sure how this will appear in the forum but it looks fine in a fixed spaced editor.

    By using UPPERCASE for the reserved words it makes their importance stand out. and much easier to read.