sql question

M

msnews.microsoft.com

Hi all

I have a table like this :

employee_name,date,income
e1,01/01/2008,100
e2,01/01/2008,110
e3,01/01/2008,120
e1,02/01/2008,80
e2,02/01/2008,210
e3,02/01/2008,90
e1,03/01/2008,110
e2,03/01/2008,105
e3,03/01/2008,90
..
..
..

I need a query that will return for each employee the date that he did the
max income
e.g.:
e1,03/01/2008,110
e2,02/01/2008,210
e3,01/01/2008,120

If it helps there is an ID (autonumber) for each row...

TIA
Guy Cohen
 

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

Top