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

Home -> Community -> Usenet -> comp.databases.oracle -> sql to find a numeric range inside another range?

sql to find a numeric range inside another range?

From: dbarchitech <noble_kid_at_mac.com>
Date: 2 Mar 2004 14:34:49 -0800
Message-ID: <9d3dc423.0403021434.18a3078e@posting.google.com>

hi,

i'm building a query to find narrow ranges of zip codes within broader ranges in a table (for tax purposes). for example:

LOW_ZIP HI_ZIP
23400 23499

need to find

23401      23402
23403      23440
23441      23... you get the picture. :)

so, each row has a low value and a hi value, then i need to run a subquery to take those values and find narrower ranges. any ideas? Received on Tue Mar 02 2004 - 16:34:49 CST

Original text of this message

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