Hi, I've got a table where I am trying to find the maximum of two columns with only one occurrence of a particular field. As an example, I am getting this back:c1 c2 c3-----------------1 151 22 152 23 189 24 189 1
I am trying to reduce it to this:c1 c2 c3-----------------1 151 22 152 24 189 1
The query I am using is this: SELECT DISTINCT MAX(T.TypesettingID), T.WorksheetID, MAX(T.Revision) FROM tblTypesetting AS T GROUP BY T.TypesettingID, T.WorksheetID
Any ideas? Thanks -