<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Filter in query builder contains 102 different strings in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Filter-in-query-builder-contains-102-different-strings/m-p/54891#M31036</link>
    <description>&lt;P&gt;There is a way to build your own&amp;nbsp;SQL in Query Builder.&amp;nbsp; Go to the red hot spot by Query Name and and select Convert to Custom SQL.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 12 Apr 2018 13:06:21 GMT</pubDate>
    <dc:creator>Bill_Worley</dc:creator>
    <dc:date>2018-04-12T13:06:21Z</dc:date>
    <item>
      <title>Filter in query builder contains 102 different strings</title>
      <link>https://community.jmp.com/t5/Discussions/Filter-in-query-builder-contains-102-different-strings/m-p/54844#M31003</link>
      <description>&lt;P&gt;In SAS 9.1 I a had a script querying a medication table with a list of over 100 different medications.&lt;/P&gt;&lt;P&gt;If the list was especially long I would create a spreadsheet in Excel and import the list into the work space, write a script matching where a.description = b.description.&lt;/P&gt;&lt;P&gt;Neither function appears in JMP.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I cannot bring in an Excel file, cannot bring in another table, ONCE THE CONNECTION TO THE ORACLE SCHEMA IS ESTABLISHED&amp;nbsp; IN QUERYBUILDER.&lt;/P&gt;&lt;P&gt;CAN ONLY BRING IN TABLES IN THAT SPECIFIC (I&amp;nbsp; have over FIVE ORACLE schemas to query) SCHEMA.&amp;nbsp;&amp;nbsp;(ridiculous, just ridiculous)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do I need to create over 100 filters on the drug description, one for each medication?&lt;/P&gt;&lt;P&gt;OR is there a way to concatenate each drug prescription into one long string and filter on that&amp;nbsp; string?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;QueryBilder code filtering just one (of over 100) medications below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SELECT DISTINCT ID, DESCRIPTION, STARTDATE,&amp;nbsp; STOPDATE&lt;BR /&gt;FROM SCHEMA.TABLE&amp;nbsp;&amp;nbsp;&lt;BR /&gt;WHERE ( ( ( (t1.DESCRIPTION LIKE '%ABILIFY%' ) ) );&lt;/P&gt;</description>
      <pubDate>Wed, 11 Apr 2018 17:28:33 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Filter-in-query-builder-contains-102-different-strings/m-p/54844#M31003</guid>
      <dc:creator>MeatPopsicle</dc:creator>
      <dc:date>2018-04-11T17:28:33Z</dc:date>
    </item>
    <item>
      <title>Re: Filter in query builder contains 102 different strings</title>
      <link>https://community.jmp.com/t5/Discussions/Filter-in-query-builder-contains-102-different-strings/m-p/54846#M31004</link>
      <description>&lt;P&gt;Have you taken a look at the documentation for Filtering within Query Builder for something like this?&amp;nbsp; Is that what you are looking for:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.jmp.com/support/help/14/build-the-sql-query.shtml#623512" target="_self"&gt;https://www.jmp.com/support/help/14/build-the-sql-query.shtml#623512&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Chris&lt;/P&gt;</description>
      <pubDate>Wed, 11 Apr 2018 18:42:02 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Filter-in-query-builder-contains-102-different-strings/m-p/54846#M31004</guid>
      <dc:creator>Chris_Kirchberg</dc:creator>
      <dc:date>2018-04-11T18:42:02Z</dc:date>
    </item>
    <item>
      <title>Re: Filter in query builder contains 102 different strings</title>
      <link>https://community.jmp.com/t5/Discussions/Filter-in-query-builder-contains-102-different-strings/m-p/54847#M31005</link>
      <description>&lt;P&gt;Perhaps you are running into a limitation of query builder.&amp;nbsp;&amp;nbsp;Can you create a SQL query that does what you want?&amp;nbsp; If that's the case you can use EXECUTE SQL.&amp;nbsp; You can query as many schemas as you want in a "regular" SQL query.&lt;/P&gt;
&lt;P&gt;Can you provide more examples of your 100 medications?&amp;nbsp; Can you use an Oracle IN LIST?&lt;/P&gt;</description>
      <pubDate>Wed, 11 Apr 2018 18:43:29 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Filter-in-query-builder-contains-102-different-strings/m-p/54847#M31005</guid>
      <dc:creator>pmroz</dc:creator>
      <dc:date>2018-04-11T18:43:29Z</dc:date>
    </item>
    <item>
      <title>Re: Filter in query builder contains 102 different strings</title>
      <link>https://community.jmp.com/t5/Discussions/Filter-in-query-builder-contains-102-different-strings/m-p/54857#M31012</link>
      <description>&lt;P&gt;Did a global replace of '%, %'&amp;nbsp;with (' &amp;amp;&amp;nbsp;'),&amp;nbsp;&amp;nbsp;- pasted entire seletion into tiny custom expression filter window (which worked).&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes, I can see the query&amp;nbsp;in the SQL Preview window but I can't edit that.&lt;/P&gt;&lt;P&gt;Is there any way to edit the SQL in the Preview Window?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I'm going to write (copy)&amp;nbsp;such long SQL code, isn't there some way to edit it in QueryBuilder?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Apr 2018 21:27:36 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Filter-in-query-builder-contains-102-different-strings/m-p/54857#M31012</guid>
      <dc:creator>MeatPopsicle</dc:creator>
      <dc:date>2018-04-11T21:27:36Z</dc:date>
    </item>
    <item>
      <title>Re: Filter in query builder contains 102 different strings</title>
      <link>https://community.jmp.com/t5/Discussions/Filter-in-query-builder-contains-102-different-strings/m-p/54890#M31035</link>
      <description>&lt;P&gt;I don't use Query Builder for developing or executing SQL queries, because our queries tend to be long and complex.&amp;nbsp; I&amp;nbsp;use &lt;A href="https://www.allroundautomations.com/plsqldev.html" target="_self"&gt;PL/SQL Developer&lt;/A&gt;; other tools include &lt;A href="https://www.quest.com/products/toad-for-oracle/" target="_self"&gt;TOAD&lt;/A&gt;, &lt;A href="https://www.quest.com/products/sql-navigator/" target="_self"&gt;SQL Navigator&lt;/A&gt; and &lt;A href="https://www.quest.com/products/sql-navigator/" target="_self"&gt;SQL Developer&lt;/A&gt;.&amp;nbsp; The last one is free from Oracle.&amp;nbsp; I develop the query in PLSD, and when it's doing what I want I use &lt;STRONG&gt;execute SQL&lt;/STRONG&gt; to run it:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;sql = 
"SELECT f.foo, b.bar
   FROM myschema1.fubar f,
        myschema2.barski b
  WHERE f.foo = b.bar";
dbc = create database connection("&amp;lt;your connection string here&amp;gt;");
dt = execute sql(dbc, sql, "My Table");
close database connection(dbc);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 12 Apr 2018 12:57:29 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Filter-in-query-builder-contains-102-different-strings/m-p/54890#M31035</guid>
      <dc:creator>pmroz</dc:creator>
      <dc:date>2018-04-12T12:57:29Z</dc:date>
    </item>
    <item>
      <title>Re: Filter in query builder contains 102 different strings</title>
      <link>https://community.jmp.com/t5/Discussions/Filter-in-query-builder-contains-102-different-strings/m-p/54891#M31036</link>
      <description>&lt;P&gt;There is a way to build your own&amp;nbsp;SQL in Query Builder.&amp;nbsp; Go to the red hot spot by Query Name and and select Convert to Custom SQL.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Apr 2018 13:06:21 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Filter-in-query-builder-contains-102-different-strings/m-p/54891#M31036</guid>
      <dc:creator>Bill_Worley</dc:creator>
      <dc:date>2018-04-12T13:06:21Z</dc:date>
    </item>
  </channel>
</rss>

