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 -> UNION question

UNION question

From: JJ <jocke30_gbg_at_hotmail.com>
Date: Fri, 7 Sep 2001 13:36:38 +0200
Message-ID: <9nabf5$k3h$1@vg170.it.volvo.se>


Hi,

I have the following SQL statement (example):

SELECT tbl1.partNo || '_1' FROM myPartsTblNo1 tbl1 UNION
SELECT tbl2.partNo || '_2' FROM myPartsTblNo2 tbl2 ORDER BY partNo

Does the UNION work as it should here?
If there is the same partNo in both tables and I'm appending '_1' and '_2' there will be two different "part numbers" and the UNION doesn't fill any function. Is this correct och wrong?

--
Best regards
Joacim Jarkeborn
Received on Fri Sep 07 2001 - 06:36:38 CDT

Original text of this message

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