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

Home -> Community -> Usenet -> c.d.o.misc -> Re: MIN value from a column in 2 tables.

Re: MIN value from a column in 2 tables.

From: Mark <mark.harris.spam.begone_at_ukonline.co.uk.spam.begone>
Date: Tue, 21 Jan 2003 08:32:04 -0000
Message-ID: <3e2d0586$0$28837$afc38c87@news.easynet.co.uk>


> This should do it:
>
> select min(ID) from (select * from table1 union select * from table2);

Thank you.

Additional: how would I identify which table the row is from?

Thanks,

Mark Received on Tue Jan 21 2003 - 02:32:04 CST

Original text of this message

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