Attached is a table of email address formats. The question is how to write a function that inputs an email address, first name and last name, and outputs the index of the table to which email format is being used. The table's field formula has the sql statement within, so using a cursor to that table and using EXEC (formula) does not work.
The idea is to have the formula's in a table, just like how our brains work, and using A.I. to determine whether email address is <first initial>+<last name>@domain or some other formula.