<?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: SQL + date filter in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/SQL-date-filter/m-p/2277758#M53433</link>
    <description>You have successfully created an input component. Take al look at the query. You can edit the query and introduce changes. Assuming you have a context variable containing a date which should be used as filter. 
&lt;BR /&gt;Here an example which assumes you have a context variable containing a date called last_modified 
&lt;BR /&gt; 
&lt;PRE&gt;"select&lt;BR /&gt;   id,&lt;BR /&gt;   name&lt;BR /&gt;from customers&lt;BR /&gt;where birthday &amp;gt; ('" + TalendDate.formatDate("yyyy-MM-dd", context.last_modified) +"' - 6 month)"&lt;/PRE&gt; 
&lt;BR /&gt;Yes it is a bit cumbersome but until Talend enables prepared statement parameters for normal input components we have to tweak the SQL it self.</description>
    <pubDate>Fri, 21 Feb 2014 23:15:05 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-02-21T23:15:05Z</dc:date>
    <item>
      <title>SQL + date filter</title>
      <link>https://community.qlik.com/t5/Talend-Studio/SQL-date-filter/m-p/2277757#M53432</link>
      <description>HI.
&lt;BR /&gt;I a new taled user.
&lt;BR /&gt;=)
&lt;BR /&gt;i have this question: how to filter data from a table by a date.
&lt;BR /&gt;===========================================================
&lt;BR /&gt;esample:
&lt;BR /&gt;My project read an oracle table and have to write a oracle table.
&lt;BR /&gt;table1 ( source )
&lt;BR /&gt;id ( number), surname (string), name ( string), birthday( date)
&lt;BR /&gt;table2 (destination )
&lt;BR /&gt;id ( number), surname (string), name ( string) 
&lt;BR /&gt;i have to ransfer all the record where the birthday is &amp;gt; .
&lt;BR /&gt;===========================================================
&lt;BR /&gt;I'm able to read the record and write them in the table, but i'm not able ti filter by the date.
&lt;BR /&gt;someone can help me ?
&lt;BR /&gt;
&lt;BR /&gt;TY
&lt;BR /&gt;
&lt;BR /&gt;Gimmy</description>
      <pubDate>Fri, 21 Feb 2014 19:38:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/SQL-date-filter/m-p/2277757#M53432</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2014-02-21T19:38:03Z</dc:date>
    </item>
    <item>
      <title>Re: SQL + date filter</title>
      <link>https://community.qlik.com/t5/Talend-Studio/SQL-date-filter/m-p/2277758#M53433</link>
      <description>You have successfully created an input component. Take al look at the query. You can edit the query and introduce changes. Assuming you have a context variable containing a date which should be used as filter. 
&lt;BR /&gt;Here an example which assumes you have a context variable containing a date called last_modified 
&lt;BR /&gt; 
&lt;PRE&gt;"select&lt;BR /&gt;   id,&lt;BR /&gt;   name&lt;BR /&gt;from customers&lt;BR /&gt;where birthday &amp;gt; ('" + TalendDate.formatDate("yyyy-MM-dd", context.last_modified) +"' - 6 month)"&lt;/PRE&gt; 
&lt;BR /&gt;Yes it is a bit cumbersome but until Talend enables prepared statement parameters for normal input components we have to tweak the SQL it self.</description>
      <pubDate>Fri, 21 Feb 2014 23:15:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/SQL-date-filter/m-p/2277758#M53433</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-02-21T23:15:05Z</dc:date>
    </item>
  </channel>
</rss>

