<?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 Make Aggregation Query Layer — More intuitive table alias naming in SQL of output query layer in ArcGIS Pro Ideas</title>
    <link>https://community.esri.com/t5/arcgis-pro-ideas/make-aggregation-query-layer-more-intuitive-table/idi-p/1492761</link>
    <description>&lt;P&gt;&lt;EM&gt;ArcGIS Pro 2.9.5; Oracle 18c 10.7.1 EGDB:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;I've created a query layer using the&amp;nbsp;Make Aggregation Query Layer tool.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bud_0-1718376358466.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/107082i6C94745ADBD74774/image-size/large?v=v2&amp;amp;px=999" role="button" title="Bud_0-1718376358466.png" alt="Bud_0-1718376358466.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;This is what the SQL of the resulting query layer looks like:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bud_2-1718376491466.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/107084i370DC8F37D0BCF5B/image-size/large?v=v2&amp;amp;px=999" role="button" title="Bud_2-1718376491466.png" alt="Bud_2-1718376491466.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I've formatted the SQL for easy viewing:&lt;/P&gt;&lt;PRE&gt;select 
    t.*,
    row_count
from 
    infrastr.strln_route &lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;t&lt;/STRONG&gt;&lt;/FONT&gt;
inner join 
    (select 
        asset_id,
        count(*) as row_count
    from 
        infrastr.lc_events
    group by 
        asset_id
    ) &lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;s&lt;/STRONG&gt;&lt;/FONT&gt; &lt;BR /&gt;    on t.rdsec = s.asset_id&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;I can imagine that the FC is aliased as&amp;nbsp; &lt;STRONG&gt;&lt;FONT face="courier new,courier" color="#0000FF"&gt;t&lt;/FONT&gt;&lt;/STRONG&gt;&amp;nbsp; for "&lt;STRONG&gt;t&lt;/STRONG&gt;arget feature class". But why is the table aliased as&amp;nbsp; &lt;FONT face="courier new,courier" color="#0000FF"&gt;&lt;STRONG&gt;s&lt;/STRONG&gt;&lt;/FONT&gt;&amp;nbsp; ? What does "s" stand for?&lt;/P&gt;&lt;P&gt;Could those aliases be improved so that they're more intuitive? For example:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;FC for Feature Class; TBL for Table.&lt;/LI&gt;&lt;LI&gt;Or something better&lt;/LI&gt;&lt;/UL&gt;</description>
    <pubDate>Fri, 14 Jun 2024 17:53:42 GMT</pubDate>
    <dc:creator>Bud</dc:creator>
    <dc:date>2024-06-14T17:53:42Z</dc:date>
    <item>
      <title>Make Aggregation Query Layer — More intuitive table alias naming in SQL of output query layer</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/make-aggregation-query-layer-more-intuitive-table/idi-p/1492761</link>
      <description>&lt;P&gt;&lt;EM&gt;ArcGIS Pro 2.9.5; Oracle 18c 10.7.1 EGDB:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;I've created a query layer using the&amp;nbsp;Make Aggregation Query Layer tool.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bud_0-1718376358466.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/107082i6C94745ADBD74774/image-size/large?v=v2&amp;amp;px=999" role="button" title="Bud_0-1718376358466.png" alt="Bud_0-1718376358466.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;This is what the SQL of the resulting query layer looks like:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bud_2-1718376491466.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/107084i370DC8F37D0BCF5B/image-size/large?v=v2&amp;amp;px=999" role="button" title="Bud_2-1718376491466.png" alt="Bud_2-1718376491466.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I've formatted the SQL for easy viewing:&lt;/P&gt;&lt;PRE&gt;select 
    t.*,
    row_count
from 
    infrastr.strln_route &lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;t&lt;/STRONG&gt;&lt;/FONT&gt;
inner join 
    (select 
        asset_id,
        count(*) as row_count
    from 
        infrastr.lc_events
    group by 
        asset_id
    ) &lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;s&lt;/STRONG&gt;&lt;/FONT&gt; &lt;BR /&gt;    on t.rdsec = s.asset_id&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;I can imagine that the FC is aliased as&amp;nbsp; &lt;STRONG&gt;&lt;FONT face="courier new,courier" color="#0000FF"&gt;t&lt;/FONT&gt;&lt;/STRONG&gt;&amp;nbsp; for "&lt;STRONG&gt;t&lt;/STRONG&gt;arget feature class". But why is the table aliased as&amp;nbsp; &lt;FONT face="courier new,courier" color="#0000FF"&gt;&lt;STRONG&gt;s&lt;/STRONG&gt;&lt;/FONT&gt;&amp;nbsp; ? What does "s" stand for?&lt;/P&gt;&lt;P&gt;Could those aliases be improved so that they're more intuitive? For example:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;FC for Feature Class; TBL for Table.&lt;/LI&gt;&lt;LI&gt;Or something better&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Fri, 14 Jun 2024 17:53:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/make-aggregation-query-layer-more-intuitive-table/idi-p/1492761</guid>
      <dc:creator>Bud</dc:creator>
      <dc:date>2024-06-14T17:53:42Z</dc:date>
    </item>
    <item>
      <title>Re: Make Aggregation Query Layer — More intuitive table alias naming in SQL of output query layer</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/make-aggregation-query-layer-more-intuitive-table/idc-p/1492836#M30684</link>
      <description>&lt;P&gt;see comment here&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/t5/arcgis-pro-ideas/make-aggregation-query-layer-indicate-what-table/idc-p/1492824#M30683" target="_blank"&gt;https://community.esri.com/t5/arcgis-pro-ideas/make-aggregation-query-layer-indicate-what-table/idc-p/1492824#M30683&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jun 2024 17:30:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/make-aggregation-query-layer-more-intuitive-table/idc-p/1492836#M30684</guid>
      <dc:creator>BBicking1</dc:creator>
      <dc:date>2024-06-14T17:30:00Z</dc:date>
    </item>
  </channel>
</rss>

