MAX not supported by MSSQL < 2005