February 14, 201312 yr I'm performing relatively simple select statement that is using criteria from a multi-keyed global field to perform the select The statement is basically ExecuteSQL( "SELECT Table1.fieldName FROM Table1 WHERE Table1.id = ? ; "" ; "" ; <MULTIKEYEDGLOBALFIELD> ) The query works but it is only returning a single result even when there are multiple keys in the global field. Any suggestions?
February 15, 201312 yr Author Solution I figured this one out myself. I used the IN operator that allows you to search within a comma separated list of values, thusly: Let ( [ ~query = "SELECT table1.field FROM table1 WHERE table1.field IN (" & Substitute ( <multi-keyed values> ; "¶" ; "," ) & ")" ] ; ExecuteSQL ( ~query ; "" ; "" ) )
Create an account or sign in to comment