Hi!
Not sure if the title describes this issue the best, but I feel like I am on the verge of getting this figured out.
I have one JMP table with a column TestID and I want to select rows from another data table based on the variable TestID list.
dt = Open("Lot List2.jmp");
ID_list = Column( dt, "TestID" ) << Get values;
dt1= Open Database("Connection",
"SELECT
[TestID]
,[Device]
,[FailureMode]
FROM [Database]
where TestID IN 'ID_list'
order by [TestID] Desc","Device Summary");
/* ALSO TRIED*/
dt = Open("Lot List2.jmp");
ID_list = Column( dt, "TestID" ) << Get values;
dt1= Open Database("Connection",
"SELECT
[TestID]
,[Device]
,[FailureMode]
FROM [Database] m
where m.TestID like 'ID_list'
order by [TestID] Desc","Device Summary");
My issue lies somewhere in my 'where' statement, but I am not sure how to call the string of IDs into this statement. The IN statement option does not open a new table, and the like option opens a blank table. My guess is that it treats ID_list as the variable to look for in the other table.
I found a similar question, but the IN statement is not working for me either: https://community.jmp.com/t5/Discussions/how-to-extract-data-with-criteria-of-JMP-table-values/td-p/...
Any insights are appreciated!