I need to get the maximum value for a field in a table. Using the following statement, it is taking about 25 minutes to return the maximum value.
SELECT max(notes.key)
FROM notes
I'm using the Merant ODBC driver, and there are over 9.5 million records in the table. Is there a better way to get the max value?
SELECT max(notes.key)
FROM notes
I'm using the Merant ODBC driver, and there are over 9.5 million records in the table. Is there a better way to get the max value?