<?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: custom expression Today() minus seven days in query builder in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/custom-expression-Today-minus-seven-days-in-query-builder/m-p/54704#M30922</link>
    <description>&lt;P&gt;You're missing two close parentheses.&lt;/P&gt;
&lt;PRE&gt;SELECT DISTINCT t1.PIN, t1.PCP, t1.LASTNAME, t1.COMDATE,
 t1.RELDATE, t1.JLOCAT, t1.SEX, t1.RELTYPE,
 t1.RELAUTH, t1.RELCUST
FROM schema.table  t1
WHERE  (  (  ( t1.RELDATE &amp;gt;= (Today() - In Days( 7 ))  ) ) )&lt;/PRE&gt;
&lt;P&gt;If you have Oracle errors try executing the query in a SQL tool like PL/SQL Developer, Toad etc.&lt;/P&gt;</description>
    <pubDate>Mon, 09 Apr 2018 14:52:23 GMT</pubDate>
    <dc:creator>pmroz</dc:creator>
    <dc:date>2018-04-09T14:52:23Z</dc:date>
    <item>
      <title>custom expression Today() minus seven days in query builder</title>
      <link>https://community.jmp.com/t5/Discussions/custom-expression-Today-minus-seven-days-in-query-builder/m-p/54703#M30921</link>
      <description>&lt;P&gt;Attempting to obtain all releases by date (reldate)&amp;nbsp;7 days ago from ORACLE through ODBC Connection&amp;nbsp;table.&lt;/P&gt;&lt;P&gt;Code below returns the attached error image:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SELECT DISTINCT t1.PIN, t1.PCP, t1.LASTNAME, t1.COMDATE,&lt;BR /&gt;&amp;nbsp;t1.RELDATE, t1.JLOCAT, t1.SEX, t1.RELTYPE,&lt;BR /&gt;&amp;nbsp;t1.RELAUTH, t1.RELCUST&lt;BR /&gt;FROM schema.table&amp;nbsp; t1&lt;BR /&gt;WHERE&amp;nbsp; (&amp;nbsp; (&amp;nbsp; ( t1.RELDATE &amp;gt;= (Today() - In Days( 7 ))&amp;nbsp; )&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2nd question:&lt;/P&gt;&lt;P&gt;Once I get this query straight, does JMP have an automated macro function to run this &amp;nbsp;jmpquery&amp;nbsp;every Monday morning at 3:00 am?&amp;nbsp;&amp;nbsp; - I&amp;nbsp; also have the JMP addon for Excel 2010.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Apr 2018 14:33:52 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/custom-expression-Today-minus-seven-days-in-query-builder/m-p/54703#M30921</guid>
      <dc:creator>jumboshrimps</dc:creator>
      <dc:date>2018-04-09T14:33:52Z</dc:date>
    </item>
    <item>
      <title>Re: custom expression Today() minus seven days in query builder</title>
      <link>https://community.jmp.com/t5/Discussions/custom-expression-Today-minus-seven-days-in-query-builder/m-p/54704#M30922</link>
      <description>&lt;P&gt;You're missing two close parentheses.&lt;/P&gt;
&lt;PRE&gt;SELECT DISTINCT t1.PIN, t1.PCP, t1.LASTNAME, t1.COMDATE,
 t1.RELDATE, t1.JLOCAT, t1.SEX, t1.RELTYPE,
 t1.RELAUTH, t1.RELCUST
FROM schema.table  t1
WHERE  (  (  ( t1.RELDATE &amp;gt;= (Today() - In Days( 7 ))  ) ) )&lt;/PRE&gt;
&lt;P&gt;If you have Oracle errors try executing the query in a SQL tool like PL/SQL Developer, Toad etc.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Apr 2018 14:52:23 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/custom-expression-Today-minus-seven-days-in-query-builder/m-p/54704#M30922</guid>
      <dc:creator>pmroz</dc:creator>
      <dc:date>2018-04-09T14:52:23Z</dc:date>
    </item>
  </channel>
</rss>

