<?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: more complex data base queries in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/more-complex-data-base-queries/m-p/760211#M93865</link>
    <description>&lt;P&gt;I'd like to re-iterate the request for calculated values in a join.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes, it can be done in a different SQL editor, or by changing the Query Builder to Custom SQL - but there's more power to Query Builder than just easy query construction.&amp;nbsp; It provides a fast and easy way to create a pretty complicated filter dialog.&amp;nbsp; I could edit the custom SQL to join upper(tb1.field) on upper(tb2.field), or add TO_NUMBER or CAST&amp;nbsp; in the SELECT - but then I loose all the filter GUI portion.&amp;nbsp; &amp;nbsp;I could build an app to do it - but that seem like reinventing what's already there.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For that matter, TO_NUMBER isn't in the calculated field options.&lt;/P&gt;&lt;P&gt;&amp;nbsp;Charles&lt;/P&gt;</description>
    <pubDate>Wed, 22 May 2024 13:34:08 GMT</pubDate>
    <dc:creator>charles_mcg</dc:creator>
    <dc:date>2024-05-22T13:34:08Z</dc:date>
    <item>
      <title>more complex data base queries</title>
      <link>https://community.jmp.com/t5/Discussions/more-complex-data-base-queries/m-p/696372#M88152</link>
      <description>&lt;P&gt;Is there a trick to set up more complex data base queries via the&lt;STRONG&gt; Query Builder GUI&lt;/STRONG&gt;?&lt;/P&gt;&lt;P&gt;e.g.&amp;nbsp;&lt;/P&gt;&lt;P&gt;- more complicated structure than just 1 primary data table, joined with several secondary data tables - on one level.&lt;/P&gt;&lt;P&gt;- use calculated / aggregated values instead of already existing entries as matches to join "on".&lt;/P&gt;</description>
      <pubDate>Thu, 09 Nov 2023 19:50:15 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/more-complex-data-base-queries/m-p/696372#M88152</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2023-11-09T19:50:15Z</dc:date>
    </item>
    <item>
      <title>Re: more complex data base queries</title>
      <link>https://community.jmp.com/t5/Discussions/more-complex-data-base-queries/m-p/696506#M88175</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/26800"&gt;@hogi&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;I don't think these will be possible in Query Builder. It is really intended to help people get started with querying databases without having to learn any SQL. It's not going to cover every possible level of complexity of SQL query.&lt;/P&gt;
&lt;P&gt;I think you would have to learn some SQL to do this. Or change the database schema to enable the same extract with a simpler query. Or bring the tables into JMP and do the calculations and joins on JMP tables, which you could automate through scripting.&lt;/P&gt;
&lt;P&gt;Sorry if that is not the answer that you were hoping for but maybe it helps.&lt;/P&gt;
&lt;P&gt;Phil&lt;/P&gt;</description>
      <pubDate>Fri, 10 Nov 2023 09:03:13 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/more-complex-data-base-queries/m-p/696506#M88175</guid>
      <dc:creator>Phil_Kay</dc:creator>
      <dc:date>2023-11-10T09:03:13Z</dc:date>
    </item>
    <item>
      <title>Re: more complex data base queries</title>
      <link>https://community.jmp.com/t5/Discussions/more-complex-data-base-queries/m-p/696546#M88180</link>
      <description>&lt;P&gt;Ok, then I did not &lt;STRONG&gt;&lt;EM&gt;miss&lt;/EM&gt; &lt;/STRONG&gt;a cool feature :)&lt;/img&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For debugging of SQL queries in JSL Editor it really helps that via double click on a bracket the code between the 2 corresponding brackets gets highlighted *).&lt;BR /&gt;But I&amp;nbsp;I really miss the feature other editors provide for editing SQL code, like displaying corresponding brackets with different colors or autosuggestions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;*) If Jmp Dev Team starts to work on&amp;nbsp;&lt;LI-MESSAGE title="optimized syntax highlighting in JSL editor" uid="573533" url="https://community.jmp.com/t5/JMP-Wish-List/optimized-syntax-highlighting-in-JSL-editor/m-p/573533#U573533" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-idea-thread lia-fa-icon lia-fa-idea lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;, it would be great to also consider the application&amp;nbsp; of the feature for SQL code in Database Query Strings.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Nov 2023 10:02:00 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/more-complex-data-base-queries/m-p/696546#M88180</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2023-11-10T10:02:00Z</dc:date>
    </item>
    <item>
      <title>Re: more complex data base queries</title>
      <link>https://community.jmp.com/t5/Discussions/more-complex-data-base-queries/m-p/696651#M88189</link>
      <description>&lt;P&gt;If you need to develop more sophisticated SQL queries I would strongly suggest using a tool like PL/SQL Developer, TOAD, SQL Developer etc. for Oracle.&amp;nbsp; Once your queries are debugged bring them into JMP and run them via execute SQL.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Nov 2023 13:15:16 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/more-complex-data-base-queries/m-p/696651#M88189</guid>
      <dc:creator>pmroz</dc:creator>
      <dc:date>2023-11-10T13:15:16Z</dc:date>
    </item>
    <item>
      <title>Re: more complex data base queries</title>
      <link>https://community.jmp.com/t5/Discussions/more-complex-data-base-queries/m-p/760211#M93865</link>
      <description>&lt;P&gt;I'd like to re-iterate the request for calculated values in a join.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes, it can be done in a different SQL editor, or by changing the Query Builder to Custom SQL - but there's more power to Query Builder than just easy query construction.&amp;nbsp; It provides a fast and easy way to create a pretty complicated filter dialog.&amp;nbsp; I could edit the custom SQL to join upper(tb1.field) on upper(tb2.field), or add TO_NUMBER or CAST&amp;nbsp; in the SELECT - but then I loose all the filter GUI portion.&amp;nbsp; &amp;nbsp;I could build an app to do it - but that seem like reinventing what's already there.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For that matter, TO_NUMBER isn't in the calculated field options.&lt;/P&gt;&lt;P&gt;&amp;nbsp;Charles&lt;/P&gt;</description>
      <pubDate>Wed, 22 May 2024 13:34:08 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/more-complex-data-base-queries/m-p/760211#M93865</guid>
      <dc:creator>charles_mcg</dc:creator>
      <dc:date>2024-05-22T13:34:08Z</dc:date>
    </item>
  </channel>
</rss>

