<?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 How to see a Max Value in a joined view with a sub-query? in ArcMap Questions</title>
    <link>https://community.esri.com/t5/arcmap-questions/how-to-see-a-max-value-in-a-joined-view-with-a-sub/m-p/747255#M1517</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Attribute table for natural gas meters is joined to a view in my billing system so when a user clicks on the map they can see the customers usage. So far all works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Modified the view to change the usage to a subquery (select Max(usage) from tblCustomer;) as "Max Actual Usage".&lt;/P&gt;&lt;P&gt;The view represents fine in SQL Server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When using a sub-query the join will not work in ArcMap (nor is a preview available in ArcCatalog).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've read where attribute table joins cannot include a sub-query.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone have an idea for a workaround? We have a business case to see the Meter on the map and the maximum usage the customer has ever experienced.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 07 Aug 2020 19:16:53 GMT</pubDate>
    <dc:creator>ScottMinter</dc:creator>
    <dc:date>2020-08-07T19:16:53Z</dc:date>
    <item>
      <title>How to see a Max Value in a joined view with a sub-query?</title>
      <link>https://community.esri.com/t5/arcmap-questions/how-to-see-a-max-value-in-a-joined-view-with-a-sub/m-p/747255#M1517</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Attribute table for natural gas meters is joined to a view in my billing system so when a user clicks on the map they can see the customers usage. So far all works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Modified the view to change the usage to a subquery (select Max(usage) from tblCustomer;) as "Max Actual Usage".&lt;/P&gt;&lt;P&gt;The view represents fine in SQL Server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When using a sub-query the join will not work in ArcMap (nor is a preview available in ArcCatalog).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've read where attribute table joins cannot include a sub-query.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone have an idea for a workaround? We have a business case to see the Meter on the map and the maximum usage the customer has ever experienced.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Aug 2020 19:16:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcmap-questions/how-to-see-a-max-value-in-a-joined-view-with-a-sub/m-p/747255#M1517</guid>
      <dc:creator>ScottMinter</dc:creator>
      <dc:date>2020-08-07T19:16:53Z</dc:date>
    </item>
  </channel>
</rss>

