Query for latest salary

R

Ramesh

Hi,

I have 2 tables with EmpID, Date and Salary. Can i make a query which will
pick the salary with the latest date for each EmpID?

Thanks in advance for any help

Ramesh
 
G

Guest

You could use MAX([Datefield]) in your query where datefield is the field you
use for the date...

Maurice
 
R

Ramesh

Thanks Maurice.

How do i use the max function on both the tables? i need the latest
considerign the union of the two tables.

Ramesh

Maurice said:
You could use MAX([Datefield]) in your query where datefield is the field
you
use for the date...

Maurice

Ramesh said:
Hi,

I have 2 tables with EmpID, Date and Salary. Can i make a query which
will
pick the salary with the latest date for each EmpID?

Thanks in advance for any help

Ramesh
 

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

Similar Threads

How to find the 2nd max salary? 1
how to update all fields in table in one go? 2
Set Value Macro 2
Lookup Field Update Problem 4
Help Plz... 4
Finding Median 1
Switch query 1
Query 2

Top