<?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: No data using date in oracle DB where clause in Connectivity &amp; Data Prep</title>
    <link>https://community.qlik.com/t5/Connectivity-Data-Prep/No-data-using-date-in-oracle-DB-where-clause/m-p/1357520#M2874</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for help&lt;/P&gt;&lt;P&gt;it doesn't work also&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but when i used floor(creation_date) = '29/04/2011' in load where statement instead of SQL it retrieved data correctly,&lt;/P&gt;&lt;P&gt;the problem is in SQL is there special interpretation for date in ODBC i tried many formats.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 07 Aug 2017 07:12:19 GMT</pubDate>
    <dc:creator>monaali602</dc:creator>
    <dc:date>2017-08-07T07:12:19Z</dc:date>
    <item>
      <title>No data using date in oracle DB where clause</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/No-data-using-date-in-oracle-DB-where-clause/m-p/1357518#M2872</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I am using ODBC Connection to Oracle DB and need to apply incremental load using date&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have written the following code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MaxDateTable:&lt;/P&gt;&lt;P&gt;LOAD Max(CREATION_DATE) AS MaxDate FROM [filename.qvd](qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vMaxCrtDate = Date(Peek('MaxDate',0,'MaxDateTable'),'DD/MM/YYYY hh:mm:ss');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[Updatedtable]:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;fld1,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;fld2;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt; SQL&lt;/P&gt;&lt;P&gt;SELECT fld1,fld2&lt;/P&gt;&lt;P&gt;FROM tablename&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;where CREATION_DATE = TO_DATE('$(vMaxCrtDate)', 'DD/MM/YYYY HH24:MI:SS');&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;The equals operator in where clause does not retrieve any data&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;in addition when replace where clause with&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;TRUNC(&lt;SPAN style="font-size: 13.3333px;"&gt;CREATION_DATE) = '29/04/2011'&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;no data retrieved despite same query run on TOAD and 43 records retrieved.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;any help? thanks in advance&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 06 Aug 2017 14:42:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/No-data-using-date-in-oracle-DB-where-clause/m-p/1357518#M2872</guid>
      <dc:creator>monaali602</dc:creator>
      <dc:date>2017-08-06T14:42:15Z</dc:date>
    </item>
    <item>
      <title>Re: No data using date in oracle DB where clause</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/No-data-using-date-in-oracle-DB-where-clause/m-p/1357519#M2873</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you could try to compare date as numbers:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;QV:&lt;/P&gt;&lt;P&gt;LET vMaxCrtDate = &lt;STRONG&gt;num(&lt;/STRONG&gt;Peek('MaxDate',0,'MaxDateTable')&lt;STRONG&gt;)&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Oracle:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;where&amp;nbsp; &lt;SPAN class="pln"&gt;ceil &lt;/SPAN&gt;&lt;SPAN class="pun"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;sysdate &lt;/SPAN&gt;&lt;SPAN class="pun"&gt;-&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; to_date&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;(CREATION_DATE&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;,&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; 'DD/MM/YYYY HH24:MI:SS'&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;)&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;)&lt;/SPAN&gt; = $(vMaxCrtDate);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;tim&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Aug 2017 06:07:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/No-data-using-date-in-oracle-DB-where-clause/m-p/1357519#M2873</guid>
      <dc:creator>zhadrakas</dc:creator>
      <dc:date>2017-08-07T06:07:46Z</dc:date>
    </item>
    <item>
      <title>Re: No data using date in oracle DB where clause</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/No-data-using-date-in-oracle-DB-where-clause/m-p/1357520#M2874</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for help&lt;/P&gt;&lt;P&gt;it doesn't work also&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but when i used floor(creation_date) = '29/04/2011' in load where statement instead of SQL it retrieved data correctly,&lt;/P&gt;&lt;P&gt;the problem is in SQL is there special interpretation for date in ODBC i tried many formats.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Aug 2017 07:12:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/No-data-using-date-in-oracle-DB-where-clause/m-p/1357520#M2874</guid>
      <dc:creator>monaali602</dc:creator>
      <dc:date>2017-08-07T07:12:19Z</dc:date>
    </item>
    <item>
      <title>Re: No data using date in oracle DB where clause</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/No-data-using-date-in-oracle-DB-where-clause/m-p/1357521#M2875</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;SQL:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;SELECT a.fld1,a.fld2&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;FROM tablename a&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;where &lt;/SPAN&gt;TRUNC(a.&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;CREATION_DATE&lt;/SPAN&gt;) = (SELECT TRUNC(MAX(b.&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;CREATION_DATE&lt;/SPAN&gt;)) FROM&amp;nbsp; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;tablename b&lt;/SPAN&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Aug 2017 08:36:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/No-data-using-date-in-oracle-DB-where-clause/m-p/1357521#M2875</guid>
      <dc:creator>sth_wch004</dc:creator>
      <dc:date>2017-08-07T08:36:16Z</dc:date>
    </item>
  </channel>
</rss>

