Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.tools -> Re: latest date
Unless I misunderstand, you have something like: table inspections
Then, it should be as simple as:
select vehicle_id, max(inspection_date) from inspections
group by vehicle_id;
That will give you the latest date for each vehicle.
Is that what you want?
-Mark
In article <13eb10be.0105241126.333ad05a_at_posting.google.com>, "Vicki"
<wellsv_at_mail.modot.state.mo.us> wrote:
> I need a way to filter out the latest date for records that have more
> than one entry. I have vehicle numbers with entries in a another field
> with the date of inspection. How can I get just the latest date?
Received on Thu May 24 2001 - 20:20:58 CDT