<?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 SQL Query custom expression - date range in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/SQL-Query-custom-expression-date-range/m-p/532348#M75536</link>
    <description>&lt;P&gt;I am trying to pre-filter a Query based on date range, but can't figure out how to get it to work.&amp;nbsp; I keep getting this error.&amp;nbsp; I have to be missing something simple, right?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JMP Query Error.PNG" style="width: 1074px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/44699i9BA67EB174A038DB/image-dimensions/1074x377?v=v2" width="1074" height="377" role="button" title="JMP Query Error.PNG" alt="JMP Query Error.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
    <pubDate>Sat, 10 Jun 2023 20:52:02 GMT</pubDate>
    <dc:creator>Phil_Nash</dc:creator>
    <dc:date>2023-06-10T20:52:02Z</dc:date>
    <item>
      <title>SQL Query custom expression - date range</title>
      <link>https://community.jmp.com/t5/Discussions/SQL-Query-custom-expression-date-range/m-p/532348#M75536</link>
      <description>&lt;P&gt;I am trying to pre-filter a Query based on date range, but can't figure out how to get it to work.&amp;nbsp; I keep getting this error.&amp;nbsp; I have to be missing something simple, right?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JMP Query Error.PNG" style="width: 1074px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/44699i9BA67EB174A038DB/image-dimensions/1074x377?v=v2" width="1074" height="377" role="button" title="JMP Query Error.PNG" alt="JMP Query Error.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Sat, 10 Jun 2023 20:52:02 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/SQL-Query-custom-expression-date-range/m-p/532348#M75536</guid>
      <dc:creator>Phil_Nash</dc:creator>
      <dc:date>2023-06-10T20:52:02Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Query custom expression - date range</title>
      <link>https://community.jmp.com/t5/Discussions/SQL-Query-custom-expression-date-range/m-p/532431#M75540</link>
      <description>&lt;P&gt;Try using&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SYSDATE - 180&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 10 Aug 2022 15:10:24 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/SQL-Query-custom-expression-date-range/m-p/532431#M75540</guid>
      <dc:creator>ErraticAttack</dc:creator>
      <dc:date>2022-08-10T15:10:24Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Query custom expression - date range</title>
      <link>https://community.jmp.com/t5/Discussions/SQL-Query-custom-expression-date-range/m-p/532462#M75541</link>
      <description>&lt;P&gt;I wasn't thinking that I needed to write it in SQL... d'uh.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This worked;&lt;/P&gt;&lt;P&gt;t4.Date &amp;gt;= CAST(DATEADD(DAY, -180, GETDATE()) as DATE)&lt;/P&gt;</description>
      <pubDate>Wed, 10 Aug 2022 15:29:10 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/SQL-Query-custom-expression-date-range/m-p/532462#M75541</guid>
      <dc:creator>Phil_Nash</dc:creator>
      <dc:date>2022-08-10T15:29:10Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Query custom expression - date range</title>
      <link>https://community.jmp.com/t5/Discussions/SQL-Query-custom-expression-date-range/m-p/533254#M75614</link>
      <description>&lt;P&gt;You Don't need to, but I really recommend this way, because it is easy and most effective. Btw I think you don't have to typecast the date, if database column is Set up correctly You can compare as date/number directly. Of course you can Do in JSL as well, but more complicated.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Aug 2022 09:37:50 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/SQL-Query-custom-expression-date-range/m-p/533254#M75614</guid>
      <dc:creator>Georg</dc:creator>
      <dc:date>2022-08-12T09:37:50Z</dc:date>
    </item>
  </channel>
</rss>

