<?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: pgSQL applied to query definition in ArGIS in Geodatabase Questions</title>
    <link>https://community.esri.com/t5/geodatabase-questions/pgsql-applied-to-query-definition-in-argis/m-p/842404#M4741</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Where are you trying to use that query?&lt;/P&gt;&lt;P&gt;Can you attach a screenshot?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 07 Jun 2017 16:57:57 GMT</pubDate>
    <dc:creator>Asrujit_SenGupta</dc:creator>
    <dc:date>2017-06-07T16:57:57Z</dc:date>
    <item>
      <title>pgSQL applied to query definition in ArGIS</title>
      <link>https://community.esri.com/t5/geodatabase-questions/pgsql-applied-to-query-definition-in-argis/m-p/842403#M4740</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was using the following code to query out the record in ArcMap.&amp;nbsp;when I used verify button for the code, it returned&amp;nbsp;error. Anybody can tell me why?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;replace(split_part( image_path_filename, '_', 5), '.pdf', '')::timestamp &amp;gt; CURRENT_TIMESTAMP - INTERVAL '545 day' and split_part( image_path_filename, '_', 5) not like 'sn-%' and split_part( image_path_filename , '_', 5) &amp;lt;&amp;gt; ' ' and maptype = 'Appraisal'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Jun 2017 15:55:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/pgsql-applied-to-query-definition-in-argis/m-p/842403#M4740</guid>
      <dc:creator>XiHan</dc:creator>
      <dc:date>2017-06-07T15:55:56Z</dc:date>
    </item>
    <item>
      <title>Re: pgSQL applied to query definition in ArGIS</title>
      <link>https://community.esri.com/t5/geodatabase-questions/pgsql-applied-to-query-definition-in-argis/m-p/842404#M4741</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Where are you trying to use that query?&lt;/P&gt;&lt;P&gt;Can you attach a screenshot?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Jun 2017 16:57:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/pgsql-applied-to-query-definition-in-argis/m-p/842404#M4741</guid>
      <dc:creator>Asrujit_SenGupta</dc:creator>
      <dc:date>2017-06-07T16:57:57Z</dc:date>
    </item>
    <item>
      <title>Re: pgSQL applied to query definition in ArGIS</title>
      <link>https://community.esri.com/t5/geodatabase-questions/pgsql-applied-to-query-definition-in-argis/m-p/842405#M4742</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the reply. The script above itself &amp;nbsp; &amp;nbsp;(&amp;nbsp;&lt;SPAN style="background-color: #ffffff;"&gt;replace(split_part( image_path_filename, '_', 5), '.pdf', '')::timestamp &amp;gt; CURRENT_TIMESTAMP - INTERVAL '545 day' and split_part( image_path_filename, '_', 5) not like 'sn-%' and split_part( image_path_filename , '_', 5) &amp;lt;&amp;gt; ' ' and maptype = 'Appraisal')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is working but when it combined with other condition it returned an error as below. Basically purpose of this script is to query&amp;nbsp;&lt;SPAN&gt;Appraisal maps under a condition that the map date is earlier than 18 months from now. But the date info is not directly given is in a field with the record format of " //sv04docifs5/data5/vol2/records/map_sets/s-map/00840/s_00840_008_2016-11-08.pdf". That is why I had to extract the date info firstly. With this condition I also tried to query&amp;nbsp;maptype = 'Bridge' OR maptype = 'Record' OR maptype = 'Survey' and it returned the following error.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(replace(split_part( image_path_filename, '_', 5), '.pdf', '')::timestamp &amp;gt; CURRENT_TIMESTAMP - INTERVAL '545 day'&lt;BR /&gt;and split_part( image_path_filename, '_', 5) not like 'sn-%' and split_part( image_path_filename , '_', 5) &amp;lt;&amp;gt; '' and maptype = 'Appraisal') or maptype = 'Bridge' OR maptype = 'Record' OR maptype = 'Survey' &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-1 jive-image j-img-original" src="/legacyfs/online/356278_Image 15.png" style="width: 620px; height: 343px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jun 2017 21:09:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/pgsql-applied-to-query-definition-in-argis/m-p/842405#M4742</guid>
      <dc:creator>XiHan</dc:creator>
      <dc:date>2017-06-08T21:09:15Z</dc:date>
    </item>
  </channel>
</rss>

