Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> Re: MIN value from a column in 2 tables.
Thank you Billy for this improvement
matthias
Billy Verreynne wrote:
> Mark wrote:
>
>
>>>select * from >>>( >>>select min(ID) as ID, 'table1' as this_table from table1 >>>union all >>>select min(ID) as ID, 'table2' as this_table from table2 >>>) >>>where ID = >>>select min(ID) from (select * from table1 union select * from table2); >>