<?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 Left Join in MakeQueryLayer in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/left-join-in-makequerylayer/m-p/1112588#M62845</link>
    <description>&lt;P&gt;Working in Jupyter Notebooks, arcpy -&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have a MakeQueryLayer function working, but it seems to be ignoring the 'Left' part of the join.&amp;nbsp; It runs and creates an output, but is doing a 1-to-1/Inner join, and I need it to return ALL from one feature class, regardless of whether there is a match in the second table.&lt;/P&gt;&lt;P&gt;I have tried:&lt;/P&gt;&lt;P&gt;"Left Join"&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;- no error just a 1-to-1 output.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;"Left Outer Join" - same thing&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;"Outer Join" returns an unknown error and does not run&lt;/SPAN&gt;&lt;/P&gt;&lt;H6&gt;&lt;STRONG&gt;Abridged code:&lt;/STRONG&gt;&lt;/H6&gt;&lt;H6&gt;select p.OBJECTID, p.SHAPE, w.field1...,&lt;/H6&gt;&lt;H6&gt;from FC1 as p&lt;/H6&gt;&lt;H6&gt;Left Join TABLE 2 as w&lt;/H6&gt;&lt;H6&gt;ON p.KEY=w.KEY&lt;/H6&gt;&lt;H6&gt;WHERE w.WO_MAINTTYPE='APM'&lt;/H6&gt;</description>
    <pubDate>Fri, 29 Oct 2021 22:13:13 GMT</pubDate>
    <dc:creator>AllenScully2</dc:creator>
    <dc:date>2021-10-29T22:13:13Z</dc:date>
    <item>
      <title>Left Join in MakeQueryLayer</title>
      <link>https://community.esri.com/t5/python-questions/left-join-in-makequerylayer/m-p/1112588#M62845</link>
      <description>&lt;P&gt;Working in Jupyter Notebooks, arcpy -&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have a MakeQueryLayer function working, but it seems to be ignoring the 'Left' part of the join.&amp;nbsp; It runs and creates an output, but is doing a 1-to-1/Inner join, and I need it to return ALL from one feature class, regardless of whether there is a match in the second table.&lt;/P&gt;&lt;P&gt;I have tried:&lt;/P&gt;&lt;P&gt;"Left Join"&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;- no error just a 1-to-1 output.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;"Left Outer Join" - same thing&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;"Outer Join" returns an unknown error and does not run&lt;/SPAN&gt;&lt;/P&gt;&lt;H6&gt;&lt;STRONG&gt;Abridged code:&lt;/STRONG&gt;&lt;/H6&gt;&lt;H6&gt;select p.OBJECTID, p.SHAPE, w.field1...,&lt;/H6&gt;&lt;H6&gt;from FC1 as p&lt;/H6&gt;&lt;H6&gt;Left Join TABLE 2 as w&lt;/H6&gt;&lt;H6&gt;ON p.KEY=w.KEY&lt;/H6&gt;&lt;H6&gt;WHERE w.WO_MAINTTYPE='APM'&lt;/H6&gt;</description>
      <pubDate>Fri, 29 Oct 2021 22:13:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/left-join-in-makequerylayer/m-p/1112588#M62845</guid>
      <dc:creator>AllenScully2</dc:creator>
      <dc:date>2021-10-29T22:13:13Z</dc:date>
    </item>
    <item>
      <title>Re: Left Join in MakeQueryLayer</title>
      <link>https://community.esri.com/t5/python-questions/left-join-in-makequerylayer/m-p/1112704#M62851</link>
      <description>&lt;P&gt;It sounds like a database issue to me - what is the underlying database?&amp;nbsp; Our systems use MS SQL Server so I usually test the select statements in the SQL Server Management Studio before using then in arcpy functions such as MakeQueryLayer. Can you so something similar to this?&lt;/P&gt;</description>
      <pubDate>Sun, 31 Oct 2021 16:56:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/left-join-in-makequerylayer/m-p/1112704#M62851</guid>
      <dc:creator>DonMorrison1</dc:creator>
      <dc:date>2021-10-31T16:56:23Z</dc:date>
    </item>
    <item>
      <title>Re: Left Join in MakeQueryLayer</title>
      <link>https://community.esri.com/t5/python-questions/left-join-in-makequerylayer/m-p/1112728#M62852</link>
      <description>Thanks -&lt;BR /&gt;Yeah the query works as designed with the same syntax in a sql server management studio.&lt;BR /&gt;&lt;BR /&gt;I know make query layer used to not support anything other than a 1-to-1 join, so just looking to see if that has changed and if so what’s a the syntax needed by python for the arcpy function for a left join.&lt;BR /&gt;</description>
      <pubDate>Sun, 31 Oct 2021 22:05:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/left-join-in-makequerylayer/m-p/1112728#M62852</guid>
      <dc:creator>AllenScully2</dc:creator>
      <dc:date>2021-10-31T22:05:58Z</dc:date>
    </item>
  </channel>
</rss>

