C
ChuckW
Hi,
I have a table called LastActionHistory. It contains the
following fields: JobNumber, LastActionDate,
LastActionHistory and Hours. It is used to keep track of
the status of jobs. There is often several entries for
each job number. For instance, we may have:
JOBNUMBER LASTACTIONDATE LASTACTIONHIST HOURS
100 6/1/03 Designed Layout 4
100 6/10/03 Met with Cust 2
100 6/15/03 Finished Job 3
What I want to do is to write a query that will only get
the last record chronologically per job. So, I would
only get
JOBNUMBER LASTACTIONDATE LASTACTIONHIST HOURS
100 6/15/03 Finished Job 3
I think I would use the Max function but am not sure.
Thanks,
Chuck W
I have a table called LastActionHistory. It contains the
following fields: JobNumber, LastActionDate,
LastActionHistory and Hours. It is used to keep track of
the status of jobs. There is often several entries for
each job number. For instance, we may have:
JOBNUMBER LASTACTIONDATE LASTACTIONHIST HOURS
100 6/1/03 Designed Layout 4
100 6/10/03 Met with Cust 2
100 6/15/03 Finished Job 3
What I want to do is to write a query that will only get
the last record chronologically per job. So, I would
only get
JOBNUMBER LASTACTIONDATE LASTACTIONHIST HOURS
100 6/15/03 Finished Job 3
I think I would use the Max function but am not sure.
Thanks,
Chuck W