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: Joining two tables without primary keys

RE: Joining two tables without primary keys

From: Roman Mirzaitov <mromka_at_MailAndNews.com>
Date: Thu, 5 Jul 2001 23:25:49 -0400
Message-ID: <3B6F73A9@MailAndNews.com>

Hi Rajesh,
you can use the following select statement:

select t1.r1, t1.r2,

       (select distinct r3 from tab2 where t1.r1=r1 and t1.r2=r2) r3 from tab1 t1

Best regards,

Roman Mirzaitov
Brainbench MVP for Oracle Administration www.brainbench.com Received on Thu Jul 05 2001 - 22:25:49 CDT

Original text of this message

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