On Thu, 2004-07-29 at 07:31, Lee Lee wrote: > SQL> select min(plan_start_dt), > min(decode(ord_stat,'OP','',plan_start_dt)) > > from test_tbl; > > MIN(PLAN_ MIN(DECOD > --------- --------- > 03-NOV-04 01-DEC-04 > > 1 row selected. > try: select min(a.plan_start_dt), min(a.plan_start_dt2) from ( select plan_start_dt, decode(ord_stat,'OP','',plan_start_dt) plan_start_dt2 from test_tbl ) a Jared ---------------------------------------------------------------- Please see the official ORACLE-L FAQ: http://www.orafaq.com ---------------------------------------------------------------- To unsubscribe send email to: oracle-l-request@xxxxxxxxxxxxx put 'unsubscribe' in the subject line. -- Archives are at //www.freelists.org/archives/oracle-l/ FAQ is at //www.freelists.org/help/fom-serve/cache/1.html -----------------------------------------------------------------