<?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: Opening a specific date range from SQL tables in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Opening-a-specific-date-range-from-SQL-tables/m-p/568328#M77904</link>
    <description>&lt;P&gt;This is a SQL question -- and it depends on they type of database you're querying.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You might try&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;SELECT * FROM dbo.VisitLog WHERE CreateDate &amp;gt; SYSDATE - 7&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;If it is an Oracle database then this should work.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 11 Nov 2022 21:29:33 GMT</pubDate>
    <dc:creator>ErraticAttack</dc:creator>
    <dc:date>2022-11-11T21:29:33Z</dc:date>
    <item>
      <title>Opening a specific date range from SQL tables</title>
      <link>https://community.jmp.com/t5/Discussions/Opening-a-specific-date-range-from-SQL-tables/m-p/568253#M77902</link>
      <description>&lt;P&gt;I open a lot of tables from SQL and I would like to be able to open just the previous 7 days. So when I run the script I want it to look at the date/time column on the sql table and open only the data for the previous 7 days.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is my open table script:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Open Database(&lt;BR /&gt;"DSN=0.20;UID=****=****;APP=JMP;WSID=VJDSTATION;DATABASE=BioControl;",&lt;BR /&gt;"SELECT * FROM dbo.VisitLog", "VisitLog"&lt;BR /&gt;);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The column I want to reference is VisitStart which is a datetime column. I want to essentially be able to say I want to open all data &amp;gt; Today() - in days(7)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Please help!&lt;/P&gt;</description>
      <pubDate>Sat, 10 Jun 2023 23:56:48 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Opening-a-specific-date-range-from-SQL-tables/m-p/568253#M77902</guid>
      <dc:creator>JocelynJohnson</dc:creator>
      <dc:date>2023-06-10T23:56:48Z</dc:date>
    </item>
    <item>
      <title>Re: Opening a specific date range from SQL tables</title>
      <link>https://community.jmp.com/t5/Discussions/Opening-a-specific-date-range-from-SQL-tables/m-p/568328#M77904</link>
      <description>&lt;P&gt;This is a SQL question -- and it depends on they type of database you're querying.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You might try&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;SELECT * FROM dbo.VisitLog WHERE CreateDate &amp;gt; SYSDATE - 7&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;If it is an Oracle database then this should work.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Nov 2022 21:29:33 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Opening-a-specific-date-range-from-SQL-tables/m-p/568328#M77904</guid>
      <dc:creator>ErraticAttack</dc:creator>
      <dc:date>2022-11-11T21:29:33Z</dc:date>
    </item>
  </channel>
</rss>

