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 -> REPOST: UNION & MINUS - strange work together at different situation

REPOST: UNION & MINUS - strange work together at different situation

From: Mike <y1799_at_yahoo.com>
Date: 24 Jan 2002 16:47:45 -0800
Message-ID: <1$--$%%%_$$%-___%$@news.noc.cabal.int>


Hi,

I have two tables: A and B, they both have the same fields. Table A contains some records. Table B has the same records and some additional records.

If I use such code:

 select * from A
 minus
 select * from B
union
 select * from B
 minus
 select * from A

I get correct result - some string (difference bitween B and A)

But if I use such code

 select * from B
 minus
 select * from A
union
 select * from A
 minus
 select * from B

I get no records as a result. What can be a problem here? Why if last part return null string UNION does not work ?

Thanks
Mike

This message was cancelled from within The Unacanceller's glorious new software, Lotus 1-2-3 For Rogue Cancellers. Received on Thu Jan 24 2002 - 18:47:45 CST

Original text of this message

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