<?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: Where clause understanding in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Where-clause-understanding/m-p/440812#M110204</link>
    <description>&lt;P&gt;This is basic SQL knowledge, perhaps have a read of the SQL in SAS help documents, or help documents on SQL:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.w3schools.com/sql/sql_between.asp" target="_blank"&gt;https://www.w3schools.com/sql/sql_between.asp&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 28 Feb 2018 09:35:06 GMT</pubDate>
    <dc:creator>RW9</dc:creator>
    <dc:date>2018-02-28T09:35:06Z</dc:date>
    <item>
      <title>Where clause understanding</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Where-clause-understanding/m-p/440786#M110194</link>
      <description>&lt;P&gt;Appreciate if some of you&amp;nbsp;help me understand what the following where clause will do?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;WHERE '31Jan2017'd between t1.PREMIUM_BEG_DT AND t1.PREMIUM_END_DT&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 28 Feb 2018 07:39:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Where-clause-understanding/m-p/440786#M110194</guid>
      <dc:creator>Babloo</dc:creator>
      <dc:date>2018-02-28T07:39:19Z</dc:date>
    </item>
    <item>
      <title>Re: Where clause understanding</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Where-clause-understanding/m-p/440787#M110195</link>
      <description>It will filter records where PREMIUM_BEG_DT&amp;lt;31-Jan-2017 and PREMIUM_END_DT&amp;gt;31-Jan-2017</description>
      <pubDate>Wed, 28 Feb 2018 08:02:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Where-clause-understanding/m-p/440787#M110195</guid>
      <dc:creator>Satish_Parida</dc:creator>
      <dc:date>2018-02-28T08:02:02Z</dc:date>
    </item>
    <item>
      <title>Re: Where clause understanding</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Where-clause-understanding/m-p/440812#M110204</link>
      <description>&lt;P&gt;This is basic SQL knowledge, perhaps have a read of the SQL in SAS help documents, or help documents on SQL:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.w3schools.com/sql/sql_between.asp" target="_blank"&gt;https://www.w3schools.com/sql/sql_between.asp&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Feb 2018 09:35:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Where-clause-understanding/m-p/440812#M110204</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-02-28T09:35:06Z</dc:date>
    </item>
    <item>
      <title>Re: Where clause understanding</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Where-clause-understanding/m-p/440850#M110218</link>
      <description>&lt;P&gt;Basically, it will select all rows where the begin-date is before or on the 31st of January&amp;nbsp; 2017, and the end date is on that date or after. If you are doing standard SQL, that is (in SAS, that happens if you write Pass-through SQL calls, or if the where clause is passed directly to an external DBMS).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But, if you are doing SAS SQL, it can also be the opposite, if the begin date is larger than the end date. Including if the end date is missing, and the begin date is after the date in question. SAS has a problem with missing values in where clauses, and with the between condition.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Feb 2018 11:41:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Where-clause-understanding/m-p/440850#M110218</guid>
      <dc:creator>s_lassen</dc:creator>
      <dc:date>2018-02-28T11:41:30Z</dc:date>
    </item>
  </channel>
</rss>

