| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Usenet -> comp.databases.theory -> Re: efficient compare
lennart_at_kommunicera.umea.se wrote:
> -CELKO- wrote:
> [...]
>
>>SELECT * >> FROM A EXCEPT B;
But what about the tuples in B that are not in A? In SQL terms:
SELECT * FROM ( SELECT * FROM A UNION SELECT * FROM B )
EXCEPT
SELECT * FROM ( SELECT * FROM A INTERSECT SELECT * FROM B )
But the OP wasn't asking how to express the query at the logical
level--he already did that quite handily, himself. He asked quite
specifically about physical implementation and efficiency.
Received on Fri Apr 21 2006 - 13:18:42 CDT
![]() |
![]() |