<?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 Custom SQL Query: LEFT OUTER JOIN, not joining properly? | JMP 15 in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Custom-SQL-Query-LEFT-OUTER-JOIN-not-joining-properly-JMP-15/m-p/354867#M60472</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm trying to join WeeklyDOSummary (yellow) and PondMaster_Investigations (green). I've highlighted the columns selected on my custom SQL query.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="InkedWeeklyDOSummary_ScreenshotEdited.jpg" style="width: 583px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/29902iA5CC1F9E89CCBAC6/image-dimensions/583x364?v=v2" width="583" height="364" role="button" title="InkedWeeklyDOSummary_ScreenshotEdited.jpg" alt="InkedWeeklyDOSummary_ScreenshotEdited.jpg" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PondMaster_Investigations2_ScreenshotEdited.jpg" style="width: 584px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/29903i7D58001481F744A9/image-dimensions/584x352?v=v2" width="584" height="352" role="button" title="PondMaster_Investigations2_ScreenshotEdited.jpg" alt="PondMaster_Investigations2_ScreenshotEdited.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;From WeeklyDOSummary, I am left outer joining PondMaster_Investigations on date = date and pond = pond. Although you can't see it clearly in the photos, there are data in the Ave and NO23 columns where there are common dates (ranging from 05/07/2020 to 10/08/2020) and common Pond values (ranging from 15 to 20).&lt;/P&gt;&lt;P&gt;But when I run my custom SQL query, JMP only recognizes the entry from Pond 15, on 08/06/2020.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Query_Screenshot.jpg" style="width: 858px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/29904i3D39CED64CB213DA/image-size/large?v=v2&amp;amp;px=999" role="button" title="Query_Screenshot.jpg" alt="Query_Screenshot.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The dates in the Weekly DO Summary Table were entered at 1:00:00 AM, which is why I subtracted 1/24 from the Date column.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The numerical value of the dates were equal between the two data tables when I checked them on Excel.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any suggestions on how to work around this issue and join the two tables completely?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance!!&lt;/P&gt;</description>
    <pubDate>Sat, 10 Jun 2023 23:25:31 GMT</pubDate>
    <dc:creator>dason</dc:creator>
    <dc:date>2023-06-10T23:25:31Z</dc:date>
    <item>
      <title>Custom SQL Query: LEFT OUTER JOIN, not joining properly? | JMP 15</title>
      <link>https://community.jmp.com/t5/Discussions/Custom-SQL-Query-LEFT-OUTER-JOIN-not-joining-properly-JMP-15/m-p/354867#M60472</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm trying to join WeeklyDOSummary (yellow) and PondMaster_Investigations (green). I've highlighted the columns selected on my custom SQL query.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="InkedWeeklyDOSummary_ScreenshotEdited.jpg" style="width: 583px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/29902iA5CC1F9E89CCBAC6/image-dimensions/583x364?v=v2" width="583" height="364" role="button" title="InkedWeeklyDOSummary_ScreenshotEdited.jpg" alt="InkedWeeklyDOSummary_ScreenshotEdited.jpg" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PondMaster_Investigations2_ScreenshotEdited.jpg" style="width: 584px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/29903i7D58001481F744A9/image-dimensions/584x352?v=v2" width="584" height="352" role="button" title="PondMaster_Investigations2_ScreenshotEdited.jpg" alt="PondMaster_Investigations2_ScreenshotEdited.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;From WeeklyDOSummary, I am left outer joining PondMaster_Investigations on date = date and pond = pond. Although you can't see it clearly in the photos, there are data in the Ave and NO23 columns where there are common dates (ranging from 05/07/2020 to 10/08/2020) and common Pond values (ranging from 15 to 20).&lt;/P&gt;&lt;P&gt;But when I run my custom SQL query, JMP only recognizes the entry from Pond 15, on 08/06/2020.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Query_Screenshot.jpg" style="width: 858px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/29904i3D39CED64CB213DA/image-size/large?v=v2&amp;amp;px=999" role="button" title="Query_Screenshot.jpg" alt="Query_Screenshot.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The dates in the Weekly DO Summary Table were entered at 1:00:00 AM, which is why I subtracted 1/24 from the Date column.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The numerical value of the dates were equal between the two data tables when I checked them on Excel.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any suggestions on how to work around this issue and join the two tables completely?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance!!&lt;/P&gt;</description>
      <pubDate>Sat, 10 Jun 2023 23:25:31 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Custom-SQL-Query-LEFT-OUTER-JOIN-not-joining-properly-JMP-15/m-p/354867#M60472</guid>
      <dc:creator>dason</dc:creator>
      <dc:date>2023-06-10T23:25:31Z</dc:date>
    </item>
    <item>
      <title>Re: Custom SQL Query: LEFT OUTER JOIN, not joining properly? | JMP 15</title>
      <link>https://community.jmp.com/t5/Discussions/Custom-SQL-Query-LEFT-OUTER-JOIN-not-joining-properly-JMP-15/m-p/355089#M60502</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The first thing I would do in JMP is to change the format of the date cols to continuous, numeric, fixed decimal, 1.&lt;/P&gt;
&lt;P&gt;Just verify that the dates are indeed identical to the second and that excel didn't feed you something goofy.&lt;/P&gt;
&lt;P&gt;I'd bet a nickel (collectable at the next JMP Discovery summit) that the dates aren't matching.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I might also make a new date index column that has lower precision, something like shortdate(:Date) in a formula column. That way the hour fraction of your date column doesn't matter. &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope its something simple like this (after all, I've got a nickel riding on it.)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;P.S. &amp;nbsp;lol, "when I checked them in Excel"&lt;/P&gt;</description>
      <pubDate>Tue, 02 Feb 2021 16:09:21 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Custom-SQL-Query-LEFT-OUTER-JOIN-not-joining-properly-JMP-15/m-p/355089#M60502</guid>
      <dc:creator>Byron_JMP</dc:creator>
      <dc:date>2021-02-02T16:09:21Z</dc:date>
    </item>
    <item>
      <title>Re: Custom SQL Query: LEFT OUTER JOIN, not joining properly? | JMP 15</title>
      <link>https://community.jmp.com/t5/Discussions/Custom-SQL-Query-LEFT-OUTER-JOIN-not-joining-properly-JMP-15/m-p/355256#M60520</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/4386"&gt;@Byron_JMP&lt;/a&gt;&amp;nbsp;Thank you so much (take my nickel!)!! The dates weren't matching at all when I changed the WeeklyDOSummary values to fixed decimal. Once I created the shortdate formula column, the values aligned and I can finally move on with my analysis!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've primarily&amp;nbsp;&lt;SPAN style="font-family: inherit;"&gt;been using Excel in the past so I was struggling with this issue on JMP forever (although now I see the solution was very very simple). I still don't understand why the dates weren't matching even though I accounted for the hour difference (1/24) on the SQL query &lt;EM&gt;and&lt;/EM&gt; the dates seemed to be matching as numerical values on Excel (I thought the date values in Excel also accounts for seconds, but as decimals...). Do you know why that might be??&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Feb 2021 23:26:14 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Custom-SQL-Query-LEFT-OUTER-JOIN-not-joining-properly-JMP-15/m-p/355256#M60520</guid>
      <dc:creator>dason</dc:creator>
      <dc:date>2021-02-02T23:26:14Z</dc:date>
    </item>
    <item>
      <title>Re: Custom SQL Query: LEFT OUTER JOIN, not joining properly? | JMP 15</title>
      <link>https://community.jmp.com/t5/Discussions/Custom-SQL-Query-LEFT-OUTER-JOIN-not-joining-properly-JMP-15/m-p/356295#M60622</link>
      <description>&lt;P&gt;In general, dates are frustrating, and there is so much variation in how they can be numerically expressed.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;my approach is to try to get to the actual number behind the formatted date value, or just take the text and use JMP's InFormat() function to parse the text to a number.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There are so many things that can go wrong, that when it all works it feels like magic.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Feb 2021 01:10:49 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Custom-SQL-Query-LEFT-OUTER-JOIN-not-joining-properly-JMP-15/m-p/356295#M60622</guid>
      <dc:creator>Byron_JMP</dc:creator>
      <dc:date>2021-02-05T01:10:49Z</dc:date>
    </item>
  </channel>
</rss>

