Hey all
I have data in the table.
(various IDs - in example below just 1)
Each ID has date and status.
I need to pull each ID only ones
for MAX date
If there are 2 like that (with different statuses) i need the one with lowest importance. Any advise ?
Status LogID Date ID Date Importance
ssss 02/04/2008 02/04/2008 ghj 6
ssss 02/04/2008 02/04/2008 ghj 6
tttt 02/04/2008 02/04/2008 ghj 5
tttt 02/04/2008 02/04/2008 ghj 5
rrrrrr 02/07/2008 02/07/2008 ghj 4
rrrrrr 02/07/2008 02/07/2008 ghj 4
ssss 02/08/2008 02/08/2008 ghj 6
ssss 02/08/2008 02/08/2008 ghj 6
ssss 02/11/2008 02/11/2008 ghj 6
ssss 02/11/2008 02/11/2008 ghj 6
tttt 02/11/2008 02/11/2008 ghj 5
tttt 02/11/2008 02/11/2008 ghj 5
I have data in the table.
(various IDs - in example below just 1)
Each ID has date and status.
I need to pull each ID only ones
for MAX date
If there are 2 like that (with different statuses) i need the one with lowest importance. Any advise ?
Status LogID Date ID Date Importance
ssss 02/04/2008 02/04/2008 ghj 6
ssss 02/04/2008 02/04/2008 ghj 6
tttt 02/04/2008 02/04/2008 ghj 5
tttt 02/04/2008 02/04/2008 ghj 5
rrrrrr 02/07/2008 02/07/2008 ghj 4
rrrrrr 02/07/2008 02/07/2008 ghj 4
ssss 02/08/2008 02/08/2008 ghj 6
ssss 02/08/2008 02/08/2008 ghj 6
ssss 02/11/2008 02/11/2008 ghj 6
ssss 02/11/2008 02/11/2008 ghj 6
tttt 02/11/2008 02/11/2008 ghj 5
tttt 02/11/2008 02/11/2008 ghj 5