W
Wiley
I hae searched the forum tono avail, so I'll ask for help.
I have a table [Scope Event Table] which records events with status changes.
The table uses an auto numbered primary key (not shown in the example
below). It has data like this:
DR_ID Event_Date Reason
12556 01/03/2008 Added
12556 01/24/2008 Closed
12874 01/05/2008 Added
14128 02/09/2008 Added
I am a novice at SQL. I am trying to build a query that would pull only the
DR_ID’s where the most recent Reason = “Addedâ€. So I would want results to
look like this:
DR_ID Event_Date Reason
12874 01/05/2008 Added
14128 02/09/2008 Added
Thanks in advance for your assistance.
I have a table [Scope Event Table] which records events with status changes.
The table uses an auto numbered primary key (not shown in the example
below). It has data like this:
DR_ID Event_Date Reason
12556 01/03/2008 Added
12556 01/24/2008 Closed
12874 01/05/2008 Added
14128 02/09/2008 Added
I am a novice at SQL. I am trying to build a query that would pull only the
DR_ID’s where the most recent Reason = “Addedâ€. So I would want results to
look like this:
DR_ID Event_Date Reason
12874 01/05/2008 Added
14128 02/09/2008 Added
Thanks in advance for your assistance.