Records not containing condition

  • Thread starter Thread starter Ramesh
  • Start date Start date
R

Ramesh

HI,

I have a Job table with Job ID and Job Description. There is an Action
table with Job ID, Action Date, ActionTaken and CurrentStatus.

The CurrentStatus contains Pending or Complete.

I want to make a query to list the latest status of each jobID. That is the
CurrentStatus in the record of the latest ActionDate of each Job ID.

Could somebody help with this one please?

Thanks very much
Ramesh
 
Ramesh,

Make a query in the sense of :

SELECT * FROM [Action Table] ORDER BY ActionDate ASC, JobID

(if I understood you right; this is a VERY basic question ...)

Kind regards

flupp
 
Thanks Flupp.

The query you have suggested will show all records. What is required is
only the last record in each JobID.

For example, if there is a job which has been attended 3 times, the first
two records will have status Pending. The third entry will have Complete.
Only the third entry is required in the query.

I am only a novice and this may be basic. But my basic knowledge isnt
working!

Thanks again
Ramesh

flupp said:
Ramesh,

Make a query in the sense of :

SELECT * FROM [Action Table] ORDER BY ActionDate ASC, JobID

(if I understood you right; this is a VERY basic question ...)

Kind regards

flupp

Ramesh said:
HI,

I have a Job table with Job ID and Job Description. There is an Action
table with Job ID, Action Date, ActionTaken and CurrentStatus.

The CurrentStatus contains Pending or Complete.

I want to make a query to list the latest status of each jobID. That is the
CurrentStatus in the record of the latest ActionDate of each Job ID.

Could somebody help with this one please?

Thanks very much
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

Query with latest date 8
report error message 1
Making pending job query 2
DB Design Question - Nearly identical records 2
Foreign Key 1
Report Summary Count 4
New Record 1
Union does not show all records 5

Back
Top