S
SurturZ
This is a bit of a basic question.
I have an array of names that the user has entered (up to 4). I want to
check every permutation of those names against the four different name fields
in the database (First, Last, Middle and Alias). No repetition in names, each
search term is used once per query.
How do I generate every permutation of the names? e.g. ABCD, ABDC, ACBD,
ACDB... etc?
Is there a formula, or do I just hardcode?
Ideally, I'd like a formula that returns every permutation for an array of
size N, but a specific solution for N=4 is okay too.
I have an array of names that the user has entered (up to 4). I want to
check every permutation of those names against the four different name fields
in the database (First, Last, Middle and Alias). No repetition in names, each
search term is used once per query.
How do I generate every permutation of the names? e.g. ABCD, ABDC, ACBD,
ACDB... etc?
Is there a formula, or do I just hardcode?
Ideally, I'd like a formula that returns every permutation for an array of
size N, but a specific solution for N=4 is okay too.