× 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.



On 10-Jun-2011 21:15 , Dennis Lovelady wrote:
Chuck, somehow I had missed this. Thank you, it is very useful!

On 06-Jun-2011 08:20 , CRPence wrote:
I had started with almost the identical approach as Richard,
although intending also to identify generally when a "category
lacks" just one element to have a complete match; included in the
potential matches are those with count [number of elements in a
set] one less than another set. Although I had started with CREATE
VIEW, I changed each here in the code example below to be a CTE.
The snippets may or may not be of any value or interest to you:

Rather than the CREATE FUNCTION that was included, I would normally have tried to include the equivalent visual representation of the data as generated from a recursive CTE. Having access only to v5r3 prevents actually verifying outcomes with that versus the UDF :-( Such a CTE would require something like ROW_NUMBER to achieve. Would have looked much cleaner if all the work, the visual presentation of the sets and the selection of the sets, had all been prepared in just the list of CTEs :-)

Regards, Chuck

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.