Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: help with query to get last row

Re: help with query to get last row

From: Adam Sandler <corn29_at_excite.com>
Date: 26 Jan 2006 06:20:50 -0800
Message-ID: <1138285250.444081.3580@g14g2000cwa.googlegroups.com>

> Certainly, as it's a basic group by query:
>
> select order_no, status, status_date
> from t_orders
> where status_date in
> (select max(status_date) from t_orders group by order_no)
>
>
> ORDER_NO STATUS STATUS_DA
> ---------- ---------- ---------
> 1223 Closed 01-MAR-05
> 2138 InWork 01-SEP-05
>
>
>
> David Fitzjarrell

Thanks David! Received on Thu Jan 26 2006 - 08:20:50 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US