<?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 in Join Transformation in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/Where-clause-in-Join-Transformation/m-p/441493#M13626</link>
    <description>Whether I have to add the conditions under 'operator' per the screenshot I&lt;BR /&gt;placed before?  Where and how can I add the functions like substr and&lt;BR /&gt;datepart which are part of my conditions?&lt;BR /&gt;</description>
    <pubDate>Fri, 02 Mar 2018 08:32:55 GMT</pubDate>
    <dc:creator>Babloo</dc:creator>
    <dc:date>2018-03-02T08:32:55Z</dc:date>
    <item>
      <title>Where clause in Join Transformation</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Where-clause-in-Join-Transformation/m-p/441478#M13623</link>
      <description>&lt;P&gt;Appreciate if someone of you help me understand to&amp;nbsp;put the following in where clause in Join transformation?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;WHERE (substr(t1.POLICY_ID,1,1)) = '9' AND t1.DELETED_IND = 0 AND t1.POLICY_VERSION = 1 AND 
           (datepart(t1.CREATED_DTTM)) &amp;gt;= today()-17
           and
           (datepart(t1.CREATED_DTTM)) &amp;lt;= today()-4;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Untitled.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/18916i71CAD059E508B1C5/image-size/large?v=v2&amp;amp;px=999" role="button" title="Untitled.png" alt="Untitled.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Mar 2018 07:39:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Where-clause-in-Join-Transformation/m-p/441478#M13623</guid>
      <dc:creator>Babloo</dc:creator>
      <dc:date>2018-03-02T07:39:01Z</dc:date>
    </item>
    <item>
      <title>Re: Where clause in Join Transformation</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Where-clause-in-Join-Transformation/m-p/441491#M13625</link>
      <description>&lt;P&gt;What's the problem? Each line will be one condition so just start adding these conditions line by line. First line will be: &lt;BR /&gt;&lt;SPAN class="token function"&gt;substr&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;t1&lt;SPAN class="token punctuation"&gt;.&lt;/SPAN&gt;POLICY_ID&lt;SPAN class="token punctuation"&gt;,&lt;/SPAN&gt;&lt;SPAN class="token number"&gt;1&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;,&lt;/SPAN&gt;&lt;SPAN class="token number"&gt;1&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt; &lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt; &lt;SPAN class="token string"&gt;'9'&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="token string"&gt;You should end up with 5 lines as below:&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;          substr(t1.POLICY_ID,1,1) = '9' 
          AND t1.DELETED_IND = 0 
          AND t1.POLICY_VERSION = 1 
          AND datepart(t1.CREATED_DTTM) &amp;gt;= today()-17
          and datepart(t1.CREATED_DTTM) &amp;lt;= today()-4&lt;/PRE&gt;</description>
      <pubDate>Fri, 02 Mar 2018 08:24:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Where-clause-in-Join-Transformation/m-p/441491#M13625</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2018-03-02T08:24:15Z</dc:date>
    </item>
    <item>
      <title>Re: Where clause in Join Transformation</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Where-clause-in-Join-Transformation/m-p/441493#M13626</link>
      <description>Whether I have to add the conditions under 'operator' per the screenshot I&lt;BR /&gt;placed before?  Where and how can I add the functions like substr and&lt;BR /&gt;datepart which are part of my conditions?&lt;BR /&gt;</description>
      <pubDate>Fri, 02 Mar 2018 08:32:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Where-clause-in-Join-Transformation/m-p/441493#M13626</guid>
      <dc:creator>Babloo</dc:creator>
      <dc:date>2018-03-02T08:32:55Z</dc:date>
    </item>
    <item>
      <title>Re: Where clause in Join Transformation</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Where-clause-in-Join-Transformation/m-p/441495#M13627</link>
      <description>&lt;P&gt;Just click into column &lt;EM&gt;Operand&lt;/EM&gt;, select in the drop down &lt;EM&gt;Choose column(s)&lt;/EM&gt; and select your column. This will populate the field with&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;t1.POLICY_ID&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;Then click again into the field and edit the entry by wrapping your substr() function around the column.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.JPG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/18919i1F2D6E578FBD0251/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.JPG" alt="Capture.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Mar 2018 08:43:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Where-clause-in-Join-Transformation/m-p/441495#M13627</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2018-03-02T08:43:13Z</dc:date>
    </item>
    <item>
      <title>Re: Where clause in Join Transformation</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Where-clause-in-Join-Transformation/m-p/441497#M13628</link>
      <description>Let me give a try. My join ON condition is different and by default the&lt;BR /&gt;same condition is applied to the where clause. Can I delete the default&lt;BR /&gt;condition in where clause and add the filters which I mentioned above?&lt;BR /&gt;</description>
      <pubDate>Fri, 02 Mar 2018 08:45:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Where-clause-in-Join-Transformation/m-p/441497#M13628</guid>
      <dc:creator>Babloo</dc:creator>
      <dc:date>2018-03-02T08:45:55Z</dc:date>
    </item>
    <item>
      <title>Re: Where clause in Join Transformation</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Where-clause-in-Join-Transformation/m-p/441498#M13629</link>
      <description>&lt;P&gt;From a DIS tool usage perspective: Yes, the panel works the same for the Where and the On clause.&lt;/P&gt;
&lt;P&gt;From a coding perspective: I can't tell you if your logic needs to go into the Where or the On clause without knowing the details of what have and what you want.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Mar 2018 08:53:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Where-clause-in-Join-Transformation/m-p/441498#M13629</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2018-03-02T08:53:04Z</dc:date>
    </item>
    <item>
      <title>Re: Where clause in Join Transformation</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Where-clause-in-Join-Transformation/m-p/441504#M13630</link>
      <description>&lt;P&gt;With the following code, could you please clarify whether I can delete the default condition in where clause and add the condition which I mentioned before?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;CREATE TABLE WORK.QUERY_FOR_QISDM_COVERAGES_C_000B AS 
   SELECT DISTINCT t1.CREATED_DTTM, 
          t11.POLICY_ID, 
          t11.POLICY_START_DT, 
          t11.POLICY_SUSPENSION_START_DT, 
          t11.POLICY_END_DT, 
          t11.POLICY_STATUS_CD
      FROM OEXTCOM.COVERAGES t1
           INNER JOIN OEXTCOM.DIM_POLICY t11 ON (t1.POLICY_SK = t11.POLICY_SK)
      WHERE (substr(t1.POLICY_ID,1,1)) = '9' AND t1.DELETED_IND = 0 AND t1.POLICY_VERSION = 1 AND 
           (datepart(t1.CREATED_DTTM)) &amp;gt;= today()-17
           and
           &lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 02 Mar 2018 09:07:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Where-clause-in-Join-Transformation/m-p/441504#M13630</guid>
      <dc:creator>Babloo</dc:creator>
      <dc:date>2018-03-02T09:07:34Z</dc:date>
    </item>
    <item>
      <title>Re: Where clause in Join Transformation</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Where-clause-in-Join-Transformation/m-p/441519#M13631</link>
      <description>&lt;P&gt;you can choose whether the Join transformation should use ON or just WHERE&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Select the Join in the outline and go down to join properties, this is where you can set implicit = no, so that you use the ON for the join and WHERE for everything else&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="Capture.PNG" style="width: 236px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/18920i475862CCACA2EFEA/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Mar 2018 09:49:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Where-clause-in-Join-Transformation/m-p/441519#M13631</guid>
      <dc:creator>BrunoMueller</dc:creator>
      <dc:date>2018-03-02T09:49:03Z</dc:date>
    </item>
  </channel>
</rss>

