<?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 Re: Incorrect syntax near the keyword 'FROM' in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/incorrect-syntax-near-the-keyword-from/m-p/160676#M5406</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What about moving the right-parenthesis over to before the less than comparison:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(EXTRACT(YEAR FROM CURRENT_DATE) - EXTRACT(YEAR FROM "DateReported")) &amp;lt; 10 AND "Facility" = 'Main' AND ("Cause" = 'Other' OR "DateRepaired" IS NULL)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 02 Oct 2015 00:50:16 GMT</pubDate>
    <dc:creator>JoshuaBixby</dc:creator>
    <dc:date>2015-10-02T00:50:16Z</dc:date>
    <item>
      <title>Incorrect syntax near the keyword 'FROM'</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/incorrect-syntax-near-the-keyword-from/m-p/160673#M5403</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i'm having an issues here, I'm trying to Select by attributes and using the following&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(EXTRACT(YEAR FROM CURRENT_DATE) - EXTRACT(YEAR FROM "DateReported") &amp;lt; 10) AND "Facility" = 'Main' AND&amp;nbsp; ("Cause" = 'Other' OR "DateRepaired" IS NULL)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and I'm getting the following error&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Incorrect syntax near the keywrod 'FROM'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Oct 2015 21:06:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/incorrect-syntax-near-the-keyword-from/m-p/160673#M5403</guid>
      <dc:creator>ChrisPolley</dc:creator>
      <dc:date>2015-10-01T21:06:34Z</dc:date>
    </item>
    <item>
      <title>Re: Incorrect syntax near the keyword 'FROM'</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/incorrect-syntax-near-the-keyword-from/m-p/160674#M5404</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you tried breaking up the statement into smaller individual statements to see which section has the error?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Oct 2015 21:21:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/incorrect-syntax-near-the-keyword-from/m-p/160674#M5404</guid>
      <dc:creator>JenniferMcCall4</dc:creator>
      <dc:date>2015-10-01T21:21:06Z</dc:date>
    </item>
    <item>
      <title>Re: Incorrect syntax near the keyword 'FROM'</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/incorrect-syntax-near-the-keyword-from/m-p/160675#M5405</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you get it to work for a simpler expression (e.g. "&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;EXTRACT(YEAR FROM &lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;"DateReported"&lt;/SPAN&gt;)=2010&lt;/SPAN&gt;")?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Oct 2015 21:27:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/incorrect-syntax-near-the-keyword-from/m-p/160675#M5405</guid>
      <dc:creator>DarrenWiens2</dc:creator>
      <dc:date>2015-10-01T21:27:54Z</dc:date>
    </item>
    <item>
      <title>Re: Incorrect syntax near the keyword 'FROM'</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/incorrect-syntax-near-the-keyword-from/m-p/160676#M5406</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What about moving the right-parenthesis over to before the less than comparison:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(EXTRACT(YEAR FROM CURRENT_DATE) - EXTRACT(YEAR FROM "DateReported")) &amp;lt; 10 AND "Facility" = 'Main' AND ("Cause" = 'Other' OR "DateRepaired" IS NULL)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Oct 2015 00:50:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/incorrect-syntax-near-the-keyword-from/m-p/160676#M5406</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2015-10-02T00:50:16Z</dc:date>
    </item>
    <item>
      <title>Re: Incorrect syntax near the keyword 'FROM'</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/incorrect-syntax-near-the-keyword-from/m-p/160677#M5407</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tried that and I'm getting the same error.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Oct 2015 03:31:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/incorrect-syntax-near-the-keyword-from/m-p/160677#M5407</guid>
      <dc:creator>ChrisPolley</dc:creator>
      <dc:date>2015-10-02T03:31:37Z</dc:date>
    </item>
    <item>
      <title>Re: Incorrect syntax near the keyword 'FROM'</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/incorrect-syntax-near-the-keyword-from/m-p/160678#M5408</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes and no&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Oct 2015 03:32:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/incorrect-syntax-near-the-keyword-from/m-p/160678#M5408</guid>
      <dc:creator>ChrisPolley</dc:creator>
      <dc:date>2015-10-02T03:32:09Z</dc:date>
    </item>
    <item>
      <title>Re: Incorrect syntax near the keyword 'FROM'</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/incorrect-syntax-near-the-keyword-from/m-p/160679#M5409</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;do the following and tell if it works&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;(EXTRACT(YEAR FROM CURRENT_DATE))&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - note the brackets!&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;((EXTRACT(YEAR FROM CURRENT_DATE) - EXTRACT(YEAR FROM "DateReported"))&amp;nbsp; &amp;lt; 10 )&amp;nbsp;&amp;nbsp;&amp;nbsp; - ditto!!&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;If either fails, let us know which one... build the steps incrementally and manually watching that you may need to add brackets as I have done in the above 2 examples&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;​&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Oct 2015 06:13:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/incorrect-syntax-near-the-keyword-from/m-p/160679#M5409</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2015-10-02T06:13:15Z</dc:date>
    </item>
    <item>
      <title>Re: Incorrect syntax near the keyword 'FROM'</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/incorrect-syntax-near-the-keyword-from/m-p/160680#M5410</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It seems EXTRACT is working and CURRENT_DATE, is the issue with the DateReported field?&amp;nbsp; Does this work?&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;(EXTRACT(YEAR FROM "DateReported"))&lt;/LI&gt;&lt;/UL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Oct 2015 14:14:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/incorrect-syntax-near-the-keyword-from/m-p/160680#M5410</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2015-10-02T14:14:13Z</dc:date>
    </item>
  </channel>
</rss>

