I guess I should have been more specific - I have no problem pulling the absolute max of the date field in the entire database. What I need is to pull the max date for each primary key (let's say account #).
Example:
Acct # Name Last_Update
12345 Smith 2000-10-13
12345 Smith 2001-11-30
12345 Smith 2001-12-11
54321 Jones 2000-10-12
54321 Jones 2001-09-07
54321 Jones 2001-12-12
I need my query to pull the most current date for each acct (i.e. with this example, I would like to see a result set of 2 rows, one for Smith and one for Jones)
I thank you for directing me to the MySQL page for help, but those examples are what I've already tried. I'm in SQL 7 and it doesn't seem to understand the LIMIT expression. The MAX just returns the highest in the entire db.
Thanks
Michelle