>After a few trial, I finally figure out how to select just the next appointment... as follows: > >
>SELECT a.case_no, min(a.appt_time) FROM appt_table a where a.case_no in (select b.case_no from pt_tx2 b where b.tx_date = '2006-10-06') and a.appt_time > '2006-10-06'groupby1orderby1
>