<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />¿Podemos usar la siguiente consulta?
dt = Abierto ("nombre de tabla");
r = dt << Get Rows Where (: testid in ('1', '2'));
Gracias Jeff, eso ilumina bastante el ejemplo.
PMroz y Craige @ JMP tienen razón.
entendí mal Craige @ JMP ejemplo de
Aquí hay uno que podría ser más claro.
dt=open("$SAMPLE_DATA\Big Class.jmp");
//get the rows for ages 13 and 17
age13and17=dt<<get rows where(contains({"13", "17"}, char(:age)));
//select those rows
dt<<select rows(age13and17);
-Jeff
Si tiene muchos valores para buscar la solución de C Hales es el camino a seguir. Funciona de manera similar a una lista de SQL IN.
Por cierto, ¿cuándo JMP va a poner SQL en el producto? PROC SQL ha estado en SAS desde hace mucho tiempo.
JMP no tiene una función In () de la manera SQL hace .
Tendrás que probar cada valor individualmente, de esta manera:
dt = Open("tablename");
r = dt << Get Rows Where(:testid == '1' | :testid == '2');
-Jeff
Probablemente hay otras formas, aquí hay una:
r = dt << Get Rows Where (contiene ({"F", "M"}, sex));
[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23,
24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40]