M
Mike
I am assuming that TOP is what I should use for this
query, but I'm having a hard time with it.
I have an equipment history table that represts repair
detail about my equipment. I need, for each
equipmnet_num, the most recent record (equip_num,
workorder, date, hours).
Using Max and min, or first and last has not returned
consistent results. If i could sort by date and group by
equip_num, and return ONLY one record (the latest one
where the date is greatest) for each equip_num, I'd have
my results, but how do I do this? My result needs to
include the fieldsp; equip_num, workorder, date, hours
and one row for each equip_num in the history table.
Can anyone help with this?
much thanks,
mike
query, but I'm having a hard time with it.
I have an equipment history table that represts repair
detail about my equipment. I need, for each
equipmnet_num, the most recent record (equip_num,
workorder, date, hours).
Using Max and min, or first and last has not returned
consistent results. If i could sort by date and group by
equip_num, and return ONLY one record (the latest one
where the date is greatest) for each equip_num, I'd have
my results, but how do I do this? My result needs to
include the fieldsp; equip_num, workorder, date, hours
and one row for each equip_num in the history table.
Can anyone help with this?
much thanks,
mike