<?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>idea User-defined SQL join clause in ArcGIS Pro Ideas</title>
    <link>https://community.esri.com/t5/arcgis-pro-ideas/user-defined-sql-join-clause/idi-p/1206117</link>
    <description>&lt;P&gt;When creating a dynamic/in-map join, it would be helpful if we could specify the join clause using SQL.&lt;/P&gt;&lt;P&gt;For example, join on multiple fields:&lt;BR /&gt;Instead of joining only on &lt;FONT face="courier new,courier" color="#0000FF"&gt;EVENT_ID=EVENT_ID&lt;/FONT&gt;, join on multiple fields:&amp;nbsp;&lt;FONT face="courier new,courier" color="#0000FF"&gt;EVENT_ID=EVENT_ID AND YEAR=YEAR&lt;/FONT&gt;.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bud_1-1661376632521.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/49386iEA88BC737D535774/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Bud_1-1661376632521.png" alt="Bud_1-1661376632521.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bud_0-1661376474497.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/49385iAD0C5E2DB1B76F6F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Bud_0-1661376474497.png" alt="Bud_0-1661376474497.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 15 Dec 2022 04:19:49 GMT</pubDate>
    <dc:creator>Bud</dc:creator>
    <dc:date>2022-12-15T04:19:49Z</dc:date>
    <item>
      <title>User-defined SQL join clause</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/user-defined-sql-join-clause/idi-p/1206117</link>
      <description>&lt;P&gt;When creating a dynamic/in-map join, it would be helpful if we could specify the join clause using SQL.&lt;/P&gt;&lt;P&gt;For example, join on multiple fields:&lt;BR /&gt;Instead of joining only on &lt;FONT face="courier new,courier" color="#0000FF"&gt;EVENT_ID=EVENT_ID&lt;/FONT&gt;, join on multiple fields:&amp;nbsp;&lt;FONT face="courier new,courier" color="#0000FF"&gt;EVENT_ID=EVENT_ID AND YEAR=YEAR&lt;/FONT&gt;.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bud_1-1661376632521.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/49386iEA88BC737D535774/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Bud_1-1661376632521.png" alt="Bud_1-1661376632521.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bud_0-1661376474497.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/49385iAD0C5E2DB1B76F6F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Bud_0-1661376474497.png" alt="Bud_0-1661376474497.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Dec 2022 04:19:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/user-defined-sql-join-clause/idi-p/1206117</guid>
      <dc:creator>Bud</dc:creator>
      <dc:date>2022-12-15T04:19:49Z</dc:date>
    </item>
    <item>
      <title>Re: Manually specify join clause using SQL</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/user-defined-sql-join-clause/idc-p/1206305#M20994</link>
      <description>&lt;P&gt;Thanks for submitting the idea&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/351335"&gt;@Bud&lt;/a&gt;&amp;nbsp;Note that there is an existing idea to &lt;A href="https://community.esri.com/t5/arcgis-pro-ideas/joins-based-on-multiple-fields/idi-p/947155" target="_blank" rel="noopener"&gt;Join based on multiple fields&lt;/A&gt;&lt;/P&gt;&lt;P&gt;If that is the need, I'd say we can merge your idea with that one. Note in the comments, though, that you could try using the &lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/make-query-layer.htm" target="_self"&gt;Make Query Layer&lt;/A&gt; tool.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Aug 2022 13:16:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/user-defined-sql-join-clause/idc-p/1206305#M20994</guid>
      <dc:creator>KoryKramer</dc:creator>
      <dc:date>2022-08-25T13:16:41Z</dc:date>
    </item>
    <item>
      <title>Re: Manually specify join clause using SQL</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/user-defined-sql-join-clause/idc-p/1206308#M20995</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/129401"&gt;@KoryKramer&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks. I think it's worth keeping this idea separate. There are other cases where specifying the SQL would be useful. For example, using an SQL expression or function in the join clause.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Aug 2022 13:22:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/user-defined-sql-join-clause/idc-p/1206308#M20995</guid>
      <dc:creator>Bud</dc:creator>
      <dc:date>2022-08-25T13:22:00Z</dc:date>
    </item>
    <item>
      <title>Re: Manually specify join clause using SQL</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/user-defined-sql-join-clause/idc-p/1238685#M22428</link>
      <description>&lt;P&gt;This is how it’s done in other enterprise platforms.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bud_0-1670415187084.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/57857i034DA1ECE5F329E4/image-size/large?v=v2&amp;amp;px=999" role="button" title="Bud_0-1670415187084.png" alt="Bud_0-1670415187084.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;You define an SQL WHERE clause for the join. You can join on multiple fields if you need to. And include complex expressions, case statements, subqueries, etc.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If you want to pare down a 1:M join to a 1:1 join, you can do that in the SQL clause too, using ORDER BY, FETCH FIRST ROW ONLY, etc. or just use a subquery.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bud_1-1670415976240.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/57860i4E3902E315C5A2F0/image-size/large?v=v2&amp;amp;px=999" role="button" title="Bud_1-1670415976240.png" alt="Bud_1-1670415976240.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Source:&amp;nbsp;&lt;A href="https://community.ibm.com/community/user/asset-facilities/communities/community-home/digestviewer/viewthread?GroupId=727&amp;amp;MessageKey=c1c1278a-907a-4e31-8180-d7f4c59ec2ec&amp;amp;CommunityKey=3d7261ae-48f7-481d-b675-a40eb407e0fd&amp;amp;tab=digestviewer" target="_self"&gt;Field based on relationship: What if relationship is 1:M?&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;and&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://www.bpdzenith.com/the-bpd-blog/maximo-relationships" target="_self"&gt;&lt;SPAN&gt;https://www.bpdzenith.com/the-bpd-blog/maximo-relationships&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;It’s similar to the idea of having a user-defined ORDER BY clause in a join: &lt;A href="https://community.esri.com/t5/arcgis-pro-ideas/one-to-first-joins-control-what-related-record-is/idi-p/1237557" target="_self"&gt;One-to-first joins: Control what related record is used&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Dec 2022 12:55:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/user-defined-sql-join-clause/idc-p/1238685#M22428</guid>
      <dc:creator>Bud</dc:creator>
      <dc:date>2022-12-07T12:55:28Z</dc:date>
    </item>
    <item>
      <title>Add join/join field with expression</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/user-defined-sql-join-clause/idc-p/1241367#M24581</link>
      <description>&lt;P&gt;Allow a table to be joined to another table/layer using an expression as the input join field. This would allow users to more easily join data together when a key field is flawed or nonexistent but could be calculated with an expression. Ex. I have a TAXDIST field whose first two digits tell me the municipality, and I have a table with these two digits and their names that I'd like to join, but I can't do this without first adding adding and calculating a separate field to the input table, which I then wouldn't need after joining.&lt;/P&gt;&lt;P&gt;Field from the input table:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="rburke_1-1671053634683.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/58602i0CCBB7DFF6A57D2C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="rburke_1-1671053634683.png" alt="rburke_1-1671053634683.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Cannot join this table without creating a new field in the input table and calculating with a Left() expression.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="rburke_0-1671053598581.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/58601i21EBC0338BBE7E1E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="rburke_0-1671053598581.png" alt="rburke_0-1671053598581.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Idea is to allow the user to just enter the expression here:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="rburke_2-1671053683716.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/58603i7B3A53DF37472876/image-size/medium?v=v2&amp;amp;px=400" role="button" title="rburke_2-1671053683716.png" alt="rburke_2-1671053683716.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;with one of these bad boys:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="rburke_3-1671053946818.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/58604i9583368B264512D5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="rburke_3-1671053946818.png" alt="rburke_3-1671053946818.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Dec 2022 21:39:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/user-defined-sql-join-clause/idc-p/1241367#M24581</guid>
      <dc:creator>wayfaringrob</dc:creator>
      <dc:date>2022-12-14T21:39:44Z</dc:date>
    </item>
    <item>
      <title>Re: Add join/join field with expression</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/user-defined-sql-join-clause/idc-p/1241452#M24582</link>
      <description>&lt;P&gt;Related:&amp;nbsp;&lt;A href="https://community.esri.com/t5/arcgis-pro-ideas/user-defined-sql-join-clause/idi-p/1206117" target="_self"&gt;&lt;SPAN&gt;User-defined SQL join clause&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Dec 2022 04:22:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/user-defined-sql-join-clause/idc-p/1241452#M24582</guid>
      <dc:creator>Bud</dc:creator>
      <dc:date>2022-12-15T04:22:26Z</dc:date>
    </item>
  </channel>
</rss>

