× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Define small... :)

I know of a cross join that runs weekly, 48 x 5500...giving me 264K rows
out...

But in this case a cross join is exactly what was needed. I'm basically
generating an item catalog with customized pricing for 48 customers.

select cust#, item#, CalcItemPrice(cust#, item#)
from catalogcusts cross join itemfile

FYI: judging from the sequence of the records output, the SQE reads through
the 5500 (well actually there's more like 30K rows, but only about 5500 are
selected) row item file once and loops through the catalog customer file
multiple times. IE. the records look like
item# cust#
1 1
1 2
1 3
<snip>
1 48
2 1
2 2

Charles

On Fri, Aug 9, 2013 at 2:02 PM, CRPence <CRPbottle@xxxxxxxxx> wrote:

Best

to avoid the Cartesian product except when the data is known to be very
small sets.


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.