<?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 Spatial view using feature class and table, by joining and applying an aggregate function. in Geodatabase Questions</title>
    <link>https://community.esri.com/t5/geodatabase-questions/spatial-view-using-feature-class-and-table-by/m-p/765172#M619</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a feature class and a stand alone table, that can be related one to many. I am trying to create a spatial view by joining the two, and applying a count aggregate function. I keep getting errors having to to with the Geometry field in the feature class table, not working with the group by clause. Here is an example.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT FC.MAXIMOID_PF,FC.Shape,FC.OBJECTID,COUNT(TBL.MAXIMOID),TBL.DATE_&lt;BR /&gt;FROM trCenterline as FC &lt;BR /&gt;LEFT OUTER JOIN trStreetSweeps as TBL &lt;BR /&gt;ON FC.MAXIMOID_PF = TBL.MAXIMOID&lt;BR /&gt;GROUP BY FC.OBJECTID,FC.MAXIMOID_PF,FC.Shape,FC.ObjectID,TBL.MAXIMOID,TBL.DATE_&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the error....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/337550_pastedImage_1.png" style="width: auto; height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;I am running ArcMap 10.3 and I am trying to query an SDE database.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 09 Mar 2017 22:59:05 GMT</pubDate>
    <dc:creator>GeneSipes1</dc:creator>
    <dc:date>2017-03-09T22:59:05Z</dc:date>
    <item>
      <title>Spatial view using feature class and table, by joining and applying an aggregate function.</title>
      <link>https://community.esri.com/t5/geodatabase-questions/spatial-view-using-feature-class-and-table-by/m-p/765172#M619</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a feature class and a stand alone table, that can be related one to many. I am trying to create a spatial view by joining the two, and applying a count aggregate function. I keep getting errors having to to with the Geometry field in the feature class table, not working with the group by clause. Here is an example.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT FC.MAXIMOID_PF,FC.Shape,FC.OBJECTID,COUNT(TBL.MAXIMOID),TBL.DATE_&lt;BR /&gt;FROM trCenterline as FC &lt;BR /&gt;LEFT OUTER JOIN trStreetSweeps as TBL &lt;BR /&gt;ON FC.MAXIMOID_PF = TBL.MAXIMOID&lt;BR /&gt;GROUP BY FC.OBJECTID,FC.MAXIMOID_PF,FC.Shape,FC.ObjectID,TBL.MAXIMOID,TBL.DATE_&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the error....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/337550_pastedImage_1.png" style="width: auto; height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;I am running ArcMap 10.3 and I am trying to query an SDE database.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Mar 2017 22:59:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/spatial-view-using-feature-class-and-table-by/m-p/765172#M619</guid>
      <dc:creator>GeneSipes1</dc:creator>
      <dc:date>2017-03-09T22:59:05Z</dc:date>
    </item>
    <item>
      <title>Re: Spatial view using feature class and table, by joining and applying an aggregate function.</title>
      <link>https://community.esri.com/t5/geodatabase-questions/spatial-view-using-feature-class-and-table-by/m-p/765173#M620</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It isn't working because SQL Server Geometry or Geography types cannot be used in a GROUP BY clause.&amp;nbsp; What version of SQL Server are you using?&amp;nbsp; If 2012 or higher, you&amp;nbsp;can use &lt;A href="https://msdn.microsoft.com/en-us/library/hh403404.aspx"&gt;Static Aggregate Geometry Methods &lt;/A&gt;to incorporate "grouped" spatial data into&amp;nbsp;query results.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Mar 2017 00:16:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/spatial-view-using-feature-class-and-table-by/m-p/765173#M620</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2017-03-10T00:16:40Z</dc:date>
    </item>
    <item>
      <title>Re: Spatial view using feature class and table, by joining and applying an aggregate function.</title>
      <link>https://community.esri.com/t5/geodatabase-questions/spatial-view-using-feature-class-and-table-by/m-p/765174#M621</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Before directly creating Views using ArcGIS Desktop, try creating the view at the Database end, make sure it gives the desired result there...then create it using ArcGIS Desktop if needed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Mar 2017 21:30:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/spatial-view-using-feature-class-and-table-by/m-p/765174#M621</guid>
      <dc:creator>Asrujit_SenGupta</dc:creator>
      <dc:date>2017-03-10T21:30:52Z</dc:date>
    </item>
  </channel>
</rss>

