<?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: JMP and Dynamic SQL queries in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/JMP-and-Dynamic-SQL-queries/m-p/109000#M39577</link>
    <description>&lt;P&gt;You did not mention which version of JMP that you are using.&amp;nbsp; JMP has an interactive Query Builder. From Help on the JMP Main Menu, select Books &amp;gt; Using JMP &amp;gt; Chapter 3 Import Data. There is an entire section on connecting to the data base and selecting DB tables and joining and selecting and creating functions/aggregates, etc.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The user interface also allow you to see the SQL statements generated by your point and click selections.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Often the same type of data data needs to be created, but different data ranges, or a different set of variables are needed. If you search the blog, you should find several examples of scripts people have written to prompt a user for a few criteria that is used to modify the base SQL, and run the query.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BTW, Query Builder also allows you to add a filter prompt, so some of the scripting is built-in.&amp;nbsp; Uness you provide more details by what you mean by dynamic, that is all the info I have to offer.&lt;/P&gt;</description>
    <pubDate>Thu, 07 Feb 2019 02:16:05 GMT</pubDate>
    <dc:creator>gzmorgan0</dc:creator>
    <dc:date>2019-02-07T02:16:05Z</dc:date>
    <item>
      <title>JMP and Dynamic SQL queries</title>
      <link>https://community.jmp.com/t5/Discussions/JMP-and-Dynamic-SQL-queries/m-p/108932#M39571</link>
      <description>&lt;P&gt;Does anyone know if JMP supports some form of Dynamic SQL queries? I want to do some special querying that is easier to dynamically generate the sql query than directly writing it.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Feb 2019 21:48:36 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JMP-and-Dynamic-SQL-queries/m-p/108932#M39571</guid>
      <dc:creator>cookiedough</dc:creator>
      <dc:date>2019-02-05T21:48:36Z</dc:date>
    </item>
    <item>
      <title>Re: JMP and Dynamic SQL queries</title>
      <link>https://community.jmp.com/t5/Discussions/JMP-and-Dynamic-SQL-queries/m-p/109000#M39577</link>
      <description>&lt;P&gt;You did not mention which version of JMP that you are using.&amp;nbsp; JMP has an interactive Query Builder. From Help on the JMP Main Menu, select Books &amp;gt; Using JMP &amp;gt; Chapter 3 Import Data. There is an entire section on connecting to the data base and selecting DB tables and joining and selecting and creating functions/aggregates, etc.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The user interface also allow you to see the SQL statements generated by your point and click selections.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Often the same type of data data needs to be created, but different data ranges, or a different set of variables are needed. If you search the blog, you should find several examples of scripts people have written to prompt a user for a few criteria that is used to modify the base SQL, and run the query.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BTW, Query Builder also allows you to add a filter prompt, so some of the scripting is built-in.&amp;nbsp; Uness you provide more details by what you mean by dynamic, that is all the info I have to offer.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Feb 2019 02:16:05 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JMP-and-Dynamic-SQL-queries/m-p/109000#M39577</guid>
      <dc:creator>gzmorgan0</dc:creator>
      <dc:date>2019-02-07T02:16:05Z</dc:date>
    </item>
    <item>
      <title>Re: JMP and Dynamic SQL queries</title>
      <link>https://community.jmp.com/t5/Discussions/JMP-and-Dynamic-SQL-queries/m-p/109011#M39579</link>
      <description>&lt;P&gt;Yes JMP supports dynamic SQL queries.&amp;nbsp; You can use something like the following:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;product = "ABCDEFG";
sql_statement = evalinsert(
"SELECT * 
   FROM mytable m
  WHERE m.product = '^product^'");
dbc = create database connection("Database Connection String goes here");
dt = execute sql(dbc, sql_statement);
close database connection(dbc);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 06 Feb 2019 12:50:10 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JMP-and-Dynamic-SQL-queries/m-p/109011#M39579</guid>
      <dc:creator>pmroz</dc:creator>
      <dc:date>2019-02-06T12:50:10Z</dc:date>
    </item>
  </channel>
</rss>

