Posted by Tony Rogerson on 11/27/07 22:34
Both are very different products.
Try this...
SELECT id, max( date )
FROM anytable
GROUP BY id
ORDER BY id, date desc
The jibe about ansi standards and MS not following them is a bit cheap, in
SQL Server you can use the ansi standard if you want - well, a lot of the 92
implementation anyway.
I'm not familiar with vfp - does it follow the ansi standard - the syntax
you posted doesn't look familiar.
--
Tony Rogerson, SQL Server MVP
http://sqlblogcasts.com/blogs/tonyrogerson
[Ramblings from the field from a SQL consultant]
http://sqlserverfaq.com
[UK SQL User Community]
[Back to original message]
|