Hi All,
A Monday morning conundrum that I would like assistance with please!
I have two fields that I have to validate, one is a string of letters (the letters never change only the order in the string), the other is a number corresponding to the letter (the numbers never change, again only depending on where in the previous string the letter sits). The PRICECOD string has no delimiters!
So PRICECOD will always contain RLASTW but not always in that order
PRICENUM (1, 2, 3 etc.) will always contain a number that relates to the position of the Letter in the string

We have put together a Data array input table with what we think are all the permutations (attached), we think there are 720 permutations.
Can you help me build the query that looks for the letter position in the PRICECOD string, then checks the correct number is in the relevant PRICENUM field?