RE: Misbehaving query

2003-12-12 Thread Bobak, Mark
Bambi, I don't think there's a bug here. Junk contains A,B,C. Junk2 contains A,B,C,X. Junk2 minus junk will yield X. Junk minus junk2 will yield 'no rows'. So, if you select from the cartesian join of the two inlines, and one of the inlines has no rows, then the output will have no rows. In o

Re: Misbehaving query

2003-12-12 Thread Mladen Gogala
No problem. You are trying to create a cartesian product of the two queries. Now, what is a Cartesian product of the two sets, A and B? It is a set of all ordered pairs (a,b) where a is element of A and b is element of B. The result of your firs query is an ampty set: SQL> select * from junk minu

Re: Misbehaving query

2003-12-12 Thread Vladimir Begun
Bellow, Bambi wrote: SQL> select a.*, b.* 2 from 3 ( select * from junk minus select * from junk2 ) a, 4 ( select * from junk2 minus select * from junk ) b; no rows selected SELECT a.* , b.* FROM (SELECT dummy x FROM dual WHERE 1 = 2) a , (SELECT dummy x FROM dual) b WHERE b.x

RE: Misbehaving query

2003-12-12 Thread Bellow, Bambi
Thank you Carol! Bambi. -Original Message- Sent: Friday, December 12, 2003 2:44 PM To: Multiple recipients of list ORACLE-L Junk minus junk2 results in no rows, and when you do the implied cartesian join between view a and view b, joining no rows with one row gives no rows. Makes sense

RE: Misbehaving query

2003-12-12 Thread Scott Canaan
That's what I was thinking, too. I tried it on 8.1.7.4 and it works the same way, as I expected. You would need an outer join to get something back. Scott Canaan ([EMAIL PROTECTED]) (585) 475-7886 "Life is like a sewer, what you get out of it depends on what you put into it." - Tom Lehrer. ---

RE: Misbehaving query

2003-12-12 Thread Carol Bristow
Junk minus junk2 results in no rows, and when you do the implied cartesian join between view a and view b, joining no rows with one row gives no rows. Makes sense to me. Carol Bristow DPRA Inc. 1300 N 17th St Suite 950 Rosslyn, VA 22209 Work: 703-841-8025 Fax: 703-524-9415 -Original Message

Misbehaving query

2003-12-12 Thread Bellow, Bambi
Hi! I have a query that I think is behaving oddly; and, it may just be that I'm blind and am doing something silly (*there's* a first!), or it may be environment specific, but, I'm thinkin it may just be a bug. I have filed a TAR with Oracle, and they keep sending workarounds, when I told them fr