select record with maximum value

  • Thread starter Thread starter arno
  • Start date Start date
A

arno

Hello!

I would like to make an sql-query to the following table:
Table:
Field1 Field2
a 1
a 2
a 3
b 6
b 7
c 3
c 4
c 5

The result should be only the record of Field1 that has the maximum value
in Field2 but I do not know how I can do this with an sql-statement:

Result:
Field1 Field2
a 3
b 7
c 5

Thank you

arno
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top