Ok.

Variants, = mixture of values contained in each field.

Sample records = Live records containing these values

I don't care about the combination, but we do need to have the minimum number of records so:

[A1,B1],[A1,B2],[A2,B1],[A2,B2] (variants over 2 fields)

could be resolved in 3 records as you have said:

record 1 - contains [A1,B1] record 2 - contains [A1,B2] record 3 - contains [A2,B1]

HOWEVER, if there are 2 records that contain:

record 1 - [A1,B1] record 2 - [A2,B2]

Then these need to be identified and used in preference to the first combination as that will be the minimum number of records I need to represent all the variants in each of the fields.

This gets more complicated as the number of fields and files being interrogated increases


In reply to Re^2: Most efficient record selection method? by Kraythorne
in thread Most efficient record selection method? by Kraythorne

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.