select an entire row based on Max value in a single field

  • Thread starter Thread starter SAM
  • Start date Start date
S

SAM

i need to select an entire row wfrom an access database based on the Maximum
value within a single field
 
SAM said:
i need to select an entire row wfrom an access database based on the
Maximum
value within a single field


SELECT * FROM core_students WHERE studentid = (SELECT MAX(studentid) FROM
core_students)

Replace "core_students" with your table name and "studentid" with your field
name.
 
Thanks Brendan, but not quite, it only returned a single record. I need it
to pick the highest from groups

xxxx yyyy 03
xxxx yyyy 06
xxxx yyyy 04
xxxy yyyy 03
xxxy yyyy 02

so the return would be

xxxx yyyy 06
xxxy yyyy 03
 
Back
Top