<?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 ArcGIS Server rest services - relationship class cannot query date from joined table in ArcGIS REST APIs and Services Questions</title>
    <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/arcgis-server-rest-services-relationship-class/m-p/566976#M2705</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;We have a feature class (FC1) joined to a sde registered table (tbl1) using a relationship class.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Tbl1 contains a date field plus other attributes.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We are trying to query the feature using a where clause that will filter results based on any attributes field-values and an intersect with geometry.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For example the ERSRI query task allows me to pass geometry to it:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;i.e. + Geometry {3231065.43494868,1734576.29053077,3233028.0102428,1736280.2975896} ESRI.ArcGIS.Client.Geometry.Geometry {ESRI.ArcGIS.Client.Geometry.Envelope}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Then I add a where clause like this to further filter:&lt;/SPAN&gt;&lt;BR /&gt;&lt;STRONG&gt;Where "FC1.Level = 1 AND tbl1.effective_date &amp;gt;= '02/27/1995' AND tbl1.effective_date &amp;lt;= '01/01/2000' &lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;From the ArcGIS Rest Services Query â?? when I add any â??where clauseâ?? using the date field I get â??unable to perform queryâ?? as a result.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Queries against other attributes contained in the table work just fine.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am looking for a solution to query the feature set with geometry and filter by a date range. (i.e. see where clause above).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 02 May 2012 14:36:14 GMT</pubDate>
    <dc:creator>DavidMitchell2</dc:creator>
    <dc:date>2012-05-02T14:36:14Z</dc:date>
    <item>
      <title>ArcGIS Server rest services - relationship class cannot query date from joined table</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/arcgis-server-rest-services-relationship-class/m-p/566976#M2705</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;We have a feature class (FC1) joined to a sde registered table (tbl1) using a relationship class.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Tbl1 contains a date field plus other attributes.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We are trying to query the feature using a where clause that will filter results based on any attributes field-values and an intersect with geometry.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For example the ERSRI query task allows me to pass geometry to it:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;i.e. + Geometry {3231065.43494868,1734576.29053077,3233028.0102428,1736280.2975896} ESRI.ArcGIS.Client.Geometry.Geometry {ESRI.ArcGIS.Client.Geometry.Envelope}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Then I add a where clause like this to further filter:&lt;/SPAN&gt;&lt;BR /&gt;&lt;STRONG&gt;Where "FC1.Level = 1 AND tbl1.effective_date &amp;gt;= '02/27/1995' AND tbl1.effective_date &amp;lt;= '01/01/2000' &lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;From the ArcGIS Rest Services Query â?? when I add any â??where clauseâ?? using the date field I get â??unable to perform queryâ?? as a result.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Queries against other attributes contained in the table work just fine.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am looking for a solution to query the feature set with geometry and filter by a date range. (i.e. see where clause above).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 May 2012 14:36:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/arcgis-server-rest-services-relationship-class/m-p/566976#M2705</guid>
      <dc:creator>DavidMitchell2</dc:creator>
      <dc:date>2012-05-02T14:36:14Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Server rest services - relationship class cannot query date from joined ta</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/arcgis-server-rest-services-relationship-class/m-p/566977#M2706</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;David,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The syntax for specifying DATE values will depend upon the data source. Please see this help topic (section: Dates and time) for more information about querying based on DATE values.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//00s500000033000000.htm"&gt;http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//00s500000033000000.htm&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 May 2012 15:04:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/arcgis-server-rest-services-relationship-class/m-p/566977#M2706</guid>
      <dc:creator>RaviNarayanan</dc:creator>
      <dc:date>2012-05-10T15:04:00Z</dc:date>
    </item>
  </channel>
</rss>

