foundset filter / SQL

I looking for appropriate SQL for a foundset filter…

SELECT table.fieldName FROM table WHERE table.fieldName IN arrayName

Can this work if arrayName contains just the first 7 characters of a longer string in fieldName? Can this be expressed in the filter?

Thank you,
Don

Have you tried substring on table.fieldName?

I didn’t know that SQL had a substring command. Foolish me!

Thank you,
Don