<?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: tMSSqlInput query command to filter records by dates problem in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/tMSSqlInput-query-command-to-filter-records-by-dates-problem/m-p/2342295#M110174</link>
    <description>I believe the problem is in your format "MM/dd/yyyy HH:mm:ss" MySQL will only recognize a form of "yyyy/MM/dd HH:mm:ss"&lt;BR /&gt;&lt;A href="http://dev.mysql.com/doc/refman/5.5/en/datetime.html" rel="nofollow noopener noreferrer"&gt;http://dev.mysql.com/doc/refman/5.5/en/datetime.html&lt;/A&gt;</description>
    <pubDate>Fri, 09 Sep 2011 17:06:24 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2011-09-09T17:06:24Z</dc:date>
    <item>
      <title>tMSSqlInput query command to filter records by dates problem</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMSSqlInput-query-command-to-filter-records-by-dates-problem/m-p/2342294#M110173</link>
      <description>Hi, 
&lt;BR /&gt;I am reading an input file from SQL database which required date filtering using Talend global context date variables. 
&lt;BR /&gt;The SQL date format is different from the global context variable defined. I am not allowed the define these date fields format in SQL and Talend. 
&lt;BR /&gt;The fields &amp;amp; format : 
&lt;BR /&gt;dbo.gl_entry.input_dt format is "dd/MM/yyyy HH:mm:ss AM", 
&lt;BR /&gt;context.DATE_START format is "dd-MM-yyyy", and 
&lt;BR /&gt;context.DATE_END format is "dd-MM-yyyy". 
&lt;BR /&gt; 
&lt;BR /&gt;The extract of the query command in tMSSQLInput_1 syntax: 
&lt;BR /&gt;"SELECT dbo.gl_entry.input_dt, 
&lt;BR /&gt; dbo.gl_entry.amount, 
&lt;BR /&gt; dbo.gl_entry.ccy, 
&lt;BR /&gt; dbo.gl_entry.deal_no, 
&lt;BR /&gt; dbo.gl_entry.trans_type 
&lt;BR /&gt;FROM dbo.gl_entry 
&lt;BR /&gt;WHERE 
&lt;BR /&gt;dbo.gl_entry.input_dt &amp;gt;= '"+TalendDate.formatDate("MM/dd/yyyy HH:mm:ss",context.DATE_START)+"' and 
&lt;BR /&gt;dbo.gl_entry.input_dt &amp;lt;= '"+TalendDate.formatDate("MM/dd/yyyy HH:mm:ss",context.DATE_END)+"'" 
&lt;BR /&gt; 
&lt;BR /&gt;Basically, there is no syntax error. However, I am not getting the expected output wanted due to different format in dates. 
&lt;BR /&gt;(Note: the SQL date has the AM/PM format). 
&lt;BR /&gt;Glad if someone can help solve this. 
&lt;BR /&gt;Thank you and regards 
&lt;BR /&gt;KM</description>
      <pubDate>Sat, 16 Nov 2024 12:41:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMSSqlInput-query-command-to-filter-records-by-dates-problem/m-p/2342294#M110173</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T12:41:44Z</dc:date>
    </item>
    <item>
      <title>Re: tMSSqlInput query command to filter records by dates problem</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMSSqlInput-query-command-to-filter-records-by-dates-problem/m-p/2342295#M110174</link>
      <description>I believe the problem is in your format "MM/dd/yyyy HH:mm:ss" MySQL will only recognize a form of "yyyy/MM/dd HH:mm:ss"&lt;BR /&gt;&lt;A href="http://dev.mysql.com/doc/refman/5.5/en/datetime.html" rel="nofollow noopener noreferrer"&gt;http://dev.mysql.com/doc/refman/5.5/en/datetime.html&lt;/A&gt;</description>
      <pubDate>Fri, 09 Sep 2011 17:06:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMSSqlInput-query-command-to-filter-records-by-dates-problem/m-p/2342295#M110174</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-09-09T17:06:24Z</dc:date>
    </item>
    <item>
      <title>Re: tMSSqlInput query command to filter records by dates problem</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMSSqlInput-query-command-to-filter-records-by-dates-problem/m-p/2342296#M110175</link>
      <description>Hello jandry.,
&lt;BR /&gt;I've tried using format "yyyy/MM/dd HH:mm:ss" on query SQL table, it doesn't work, perhaps it's for MySQL only.
&lt;BR /&gt;Any other suggestion?
&lt;BR /&gt;Thanks &amp;amp; regards,
&lt;BR /&gt;Km</description>
      <pubDate>Mon, 12 Sep 2011 04:10:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMSSqlInput-query-command-to-filter-records-by-dates-problem/m-p/2342296#M110175</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-09-12T04:10:49Z</dc:date>
    </item>
  </channel>
</rss>

