<?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 Using Group By / Count Subquery with Make Table Query in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/using-group-by-count-subquery-with-make-table/m-p/189840#M6499</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a table (tblImprv) with two fields - an unique ImprvID and an associated ParcelID. There can be 1 or more improvements.&amp;nbsp; What I am trying to do is create a query for this table that returns the ParcelIDs and the number of improvements.&amp;nbsp;&amp;nbsp; I realize I can do this by summarizing the data on ParcelID and returning the count, but was wondering if something like this can be done using the 'Make Table Query' using a subquery.&amp;nbsp; The general SQL syntax I would use would be something like that shown below, but Im not clear how to implement in Make Table Query tool or if it can event be done.&amp;nbsp; Ultimately I want to only select the parcels with 2 or more improvements, but I cant even get past this first step&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(SELECT ParcelID, Count(ImprvID) AS CntImpv FROM tblImprv GROUP BY ParcelID;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example tblImprv and query result&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/437305_pastedImage_4.png" /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;IMG class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/437349_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 Feb 2019 00:36:00 GMT</pubDate>
    <dc:creator>NealBanerjee</dc:creator>
    <dc:date>2019-02-14T00:36:00Z</dc:date>
    <item>
      <title>Using Group By / Count Subquery with Make Table Query</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/using-group-by-count-subquery-with-make-table/m-p/189840#M6499</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a table (tblImprv) with two fields - an unique ImprvID and an associated ParcelID. There can be 1 or more improvements.&amp;nbsp; What I am trying to do is create a query for this table that returns the ParcelIDs and the number of improvements.&amp;nbsp;&amp;nbsp; I realize I can do this by summarizing the data on ParcelID and returning the count, but was wondering if something like this can be done using the 'Make Table Query' using a subquery.&amp;nbsp; The general SQL syntax I would use would be something like that shown below, but Im not clear how to implement in Make Table Query tool or if it can event be done.&amp;nbsp; Ultimately I want to only select the parcels with 2 or more improvements, but I cant even get past this first step&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(SELECT ParcelID, Count(ImprvID) AS CntImpv FROM tblImprv GROUP BY ParcelID;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example tblImprv and query result&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/437305_pastedImage_4.png" /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;IMG class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/437349_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Feb 2019 00:36:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/using-group-by-count-subquery-with-make-table/m-p/189840#M6499</guid>
      <dc:creator>NealBanerjee</dc:creator>
      <dc:date>2019-02-14T00:36:00Z</dc:date>
    </item>
  </channel>
</rss>

