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: Getting similar data

Re: Getting similar data

From: Steve Bell <stephenb_at_sympatico.ca>
Date: Sun, 6 Jan 2002 13:09:28 -0500
Message-ID: <_s0_7.3441$os5.269708@news20.bellglobal.com>


Hi,

If I understand your question correctly, just use a UNION query, like this:

SQL> select * from table1;

THINGY1 NUM1 NUM2
---------- ---------- ----------

apple               2         98
pear                5        100

SQL> select * from table2;

THINGY2 NUMA NUMB
---------- ---------- ----------

gun                20        300
lolly               3        150

SQL> select * from table1
  2 union
  3 select * from table2;

THINGY1 NUM1 NUM2
---------- ---------- ----------

apple               2         98
gun                20        300
lolly               3        150
pear                5        100

SQL> I hope this helps,

Steve Received on Sun Jan 06 2002 - 12:09:28 CST

Original text of this message

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