Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> Re[2]: Union quries: INTERSECT, MINUS, etc

Re[2]: Union quries: INTERSECT, MINUS, etc

From: Jonathan Gennick <jonathan_at_gennick.com>
Date: Thu, 24 Jul 2003 10:13:13 -0400
Message-Id: <26007.339433@fatcity.com>


Thursday, July 24, 2003, 10:09:25 AM, Dave wrote: DP> Compared actual result set
DP> with expected result set via minus.

I've done that too. I need to search the cobwebs of my memory a bit, but I recall having use MINUS both ways to be sure:

results MINUS expected_results

    tells you whether the real results included any rows     that are unexpected

expected_results MINUS results

    tells you whether results omitted any expected rows

I seem to recall once having to use GROUP BY and COUNT to ensure that the *right quantity* of each row was in the result set.

Best regards,

Jonathan Gennick --- Brighten the corner where you are http://Gennick.com * 906.387.1698 * mailto:jonathan@gennick.com

Join the Oracle-article list and receive one article on Oracle technologies per month by email. To join, visit http://four.pairlist.net/mailman/listinfo/oracle-article, or send email to Oracle-article-request_at_gennick.com and include the word "subscribe" in either the subject or body. Received on Thu Jul 24 2003 - 09:13:13 CDT

Original text of this message

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