Hi Lumpy
Think of it as a Logical statement. This give the Maximum Revision per Title. Select Maximum Revision for each Title in table Documents.
Without the Group By it would be trying to return the max value on each record, in other words every record.
When using aggregates (Sum, Avg, Count, Max, etc.) in a query you must always group by any field not aggregated.
If for example you had included an Revised By field in your query, that would also have to be included in the Group By.
-
SELECT Max(Revision), Title, RevisedBy
-
FROM Documents
-
GROUP BY Title, RevisedBy;
The results this time would be a Max Revision per Title per RevisedBy. So If a Title was revised by two people it would give the max revision for each.
Mary