S
Steve Sherman
I have a simple HR database with two tables. One is a
staff table and one is a compensation table. The staff
tables is related to the compensation table in a one to
many relationship. Each staff record can have multiple
records in the compensation table, which tracks date of
raise, amount of raise, current annual salary, etc. A new
compensation record is created whenever there?s a raise for
the employee. Each compensation record has a primary key
field called ?CompID?
I am trying to do a query which lists every employee record
from the staff side and only the most current record (which
will have the highest/max CompID number) of the
compensation table. [And I could therefore create a report
which lists on one line each employee and some fields from
the Staff table as well as the current annual salary, etc.
from the Compensation table]
How can I set up the query grid to accomplish this?
Thanks,
Steve Sherman
staff table and one is a compensation table. The staff
tables is related to the compensation table in a one to
many relationship. Each staff record can have multiple
records in the compensation table, which tracks date of
raise, amount of raise, current annual salary, etc. A new
compensation record is created whenever there?s a raise for
the employee. Each compensation record has a primary key
field called ?CompID?
I am trying to do a query which lists every employee record
from the staff side and only the most current record (which
will have the highest/max CompID number) of the
compensation table. [And I could therefore create a report
which lists on one line each employee and some fields from
the Staff table as well as the current annual salary, etc.
from the Compensation table]
How can I set up the query grid to accomplish this?
Thanks,
Steve Sherman