<?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 Definition Query to get the records added in the last six months in Mapping Questions</title>
    <link>https://community.esri.com/t5/mapping-questions/definition-query-to-get-the-records-added-in-the/m-p/461591#M5038</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am trying to write a definition query on a points file on an Oracle DB. I want to retrieve records added in the last six months. So far, I have written the following:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;MONTHS_BETWEEN (SYSDATE, TO_DATE ( DATE_CREATED, 'DD/MM/YYYY')) &amp;lt;6&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This doesn't return any rows at all.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have also tried this code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;SYSDATE - DATE_CREATED &amp;lt; 185&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This works to a certain extent but it is not precise.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can anyone please help me find a solution to this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 25 May 2012 09:28:41 GMT</pubDate>
    <dc:creator>YousafHassan</dc:creator>
    <dc:date>2012-05-25T09:28:41Z</dc:date>
    <item>
      <title>Definition Query to get the records added in the last six months</title>
      <link>https://community.esri.com/t5/mapping-questions/definition-query-to-get-the-records-added-in-the/m-p/461591#M5038</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am trying to write a definition query on a points file on an Oracle DB. I want to retrieve records added in the last six months. So far, I have written the following:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;MONTHS_BETWEEN (SYSDATE, TO_DATE ( DATE_CREATED, 'DD/MM/YYYY')) &amp;lt;6&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This doesn't return any rows at all.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have also tried this code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;SYSDATE - DATE_CREATED &amp;lt; 185&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This works to a certain extent but it is not precise.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can anyone please help me find a solution to this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 May 2012 09:28:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/definition-query-to-get-the-records-added-in-the/m-p/461591#M5038</guid>
      <dc:creator>YousafHassan</dc:creator>
      <dc:date>2012-05-25T09:28:41Z</dc:date>
    </item>
    <item>
      <title>Re: Definition Query to get the records added in the last six months</title>
      <link>https://community.esri.com/t5/mapping-questions/definition-query-to-get-the-records-added-in-the/m-p/461592#M5039</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Did you ever figure this out?&amp;nbsp; I have a join in my mxd and trying to query anything with a join using sysdate is giving me an error.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 May 2013 14:06:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/definition-query-to-get-the-records-added-in-the/m-p/461592#M5039</guid>
      <dc:creator>JustinCornell</dc:creator>
      <dc:date>2013-05-23T14:06:25Z</dc:date>
    </item>
  </channel>
</rss>

