cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Instantly extract effect sizes, F-ratios, and FDR-adjusted p-values from your models with the Calculate Effects Sizes extension, available now in the JMP Marketplace!
  • New to JMP? Join us Sept. 23-24 for the Early User Edition of Discovery Summit, tailor-made for new users. Register now for free!
  • Your voice matters! Tell us how you prefer to receive JMP updates, so we can tailor our communication to your needs. Take short survey.

Discussions

Solve problems, and share tips and tricks with other JMP users.
Choose Language Hide Translation Bar
GiuseppeC
Level II

Dear All,

I would like to make a query on a database that contains two separate columns in which different genetic mutations are indicated.
Therefore I would like to look for two mutations at the same time.
I wrote the following program in SAS:

 

proc sql;
create table f.gat as
select *
from f.c
where mutation1 in ("G178R", "S549N", "S549R", "S549R (A-> C)", "S549R (T-> G)", "G551D", "G551S", "G1244E", "S1251N "," S1255P "," G1349D ")
or / and
mutation2 in ("G178R", "S549N", "S549R", "S549R (A-> C)", "S549R (T-> G)", "G551D", "G551S", "G1244E", "S1251N" , "S1255P", "G1349D");
run;

in JMP is it possible to write a program that does the same thing that SAS does? Is it possible to replace "in" with "not in" or different?

 

Thank you

 

Giuseppe

 

1 REPLY 1
frank_wang
Level IV

Re: SQL

Hi

JMP can query DB like below:

obj = New SQL Query( Connection( "ODBC:DSN=SampleDSN;" ), Custom SQL( "SELECT c1, c2, c3 FROM my_table;" ) );

Put SQL into 'Custom SQL()'. Details could be serched from script index with key word 'SQL'

心若止水

Recommended Articles