<?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 ODBC Oracle Datetime problem in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/ODBC-Oracle-Datetime-problem/m-p/390603#M1150197</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am new to qlikview, &lt;/P&gt;&lt;P&gt;I try to retrieve record from DB with&amp;nbsp; SQL statement Below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;statement:&lt;/P&gt;&lt;P&gt;select * from itemdm where lastmodtime &amp;gt; TO_DATE($(vMax),'YYYY-MM-DD HH24.MI.SS');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;debugger returns:&lt;/P&gt;&lt;P&gt;SQL##f - SqlState: S1000, ErrorCode: 907, ErrorMsg: [Oracle][ODBC][Ora]ORA-00907: missing right parenthesis&lt;/P&gt;&lt;P&gt;New:&lt;/P&gt;&lt;P&gt;select * from xf_itemdm where xf_lastmodtime &amp;gt; TO_DATE(2013-05-20 17.05.41,'YYYY-MM-DD HH24.MI.SS')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess this msg is due to missing pair of&amp;nbsp; '&amp;nbsp; ,&lt;/P&gt;&lt;P&gt;can anyone teach me how to handle it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and I found it there's a date but no datetime function,&lt;BR /&gt;Any ways suggested to handle the date, string and datetime&amp;nbsp; conversion? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thx !!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 21 May 2013 09:42:12 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-05-21T09:42:12Z</dc:date>
    <item>
      <title>ODBC Oracle Datetime problem</title>
      <link>https://community.qlik.com/t5/QlikView/ODBC-Oracle-Datetime-problem/m-p/390603#M1150197</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am new to qlikview, &lt;/P&gt;&lt;P&gt;I try to retrieve record from DB with&amp;nbsp; SQL statement Below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;statement:&lt;/P&gt;&lt;P&gt;select * from itemdm where lastmodtime &amp;gt; TO_DATE($(vMax),'YYYY-MM-DD HH24.MI.SS');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;debugger returns:&lt;/P&gt;&lt;P&gt;SQL##f - SqlState: S1000, ErrorCode: 907, ErrorMsg: [Oracle][ODBC][Ora]ORA-00907: missing right parenthesis&lt;/P&gt;&lt;P&gt;New:&lt;/P&gt;&lt;P&gt;select * from xf_itemdm where xf_lastmodtime &amp;gt; TO_DATE(2013-05-20 17.05.41,'YYYY-MM-DD HH24.MI.SS')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess this msg is due to missing pair of&amp;nbsp; '&amp;nbsp; ,&lt;/P&gt;&lt;P&gt;can anyone teach me how to handle it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and I found it there's a date but no datetime function,&lt;BR /&gt;Any ways suggested to handle the date, string and datetime&amp;nbsp; conversion? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thx !!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 May 2013 09:42:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ODBC-Oracle-Datetime-problem/m-p/390603#M1150197</guid>
      <dc:creator />
      <dc:date>2013-05-21T09:42:12Z</dc:date>
    </item>
    <item>
      <title>Re: ODBC Oracle Datetime problem</title>
      <link>https://community.qlik.com/t5/QlikView/ODBC-Oracle-Datetime-problem/m-p/390604#M1150198</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi calvinlin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First try this: SQL select * from itemdm where lastmodtime &amp;gt; TO_DATE($(vMax),'YYYY-MM-DD HH24.MI.SS');&lt;/P&gt;&lt;P&gt;If not work then try select * from itemdm where lastmodtime &amp;gt; Chr(39) &amp;amp; TO_DATE($(vMax),'YYYY-MM-DD HH24.MI.SS') &amp;amp; Chr(39);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sokkorn&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 May 2013 09:56:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ODBC-Oracle-Datetime-problem/m-p/390604#M1150198</guid>
      <dc:creator>Sokkorn</dc:creator>
      <dc:date>2013-05-21T09:56:56Z</dc:date>
    </item>
    <item>
      <title>Re: ODBC Oracle Datetime problem</title>
      <link>https://community.qlik.com/t5/QlikView/ODBC-Oracle-Datetime-problem/m-p/390605#M1150199</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Sokkorn,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chr(39) works if i store the variable &lt;SPAN style="font-size: 10pt;"&gt;before the sql statement like this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let vMax = chr(39)&amp;amp;DATE(peek('maxDate',-1,Temp),'YYYY-MM-DD HH.MM.SS')&amp;amp;chr(39); &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when undergoing the sql statement, the vMax contains the pairs of 's &lt;/P&gt;&lt;P&gt;Thanks a lot !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Calvin Lin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 May 2013 10:11:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ODBC-Oracle-Datetime-problem/m-p/390605#M1150199</guid>
      <dc:creator />
      <dc:date>2013-05-21T10:11:34Z</dc:date>
    </item>
    <item>
      <title>Re: ODBC Oracle Datetime problem</title>
      <link>https://community.qlik.com/t5/QlikView/ODBC-Oracle-Datetime-problem/m-p/390606#M1150201</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Calvin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sound great. My script is just an idea for your to us Chr(39), but you can get it done with your actual script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheer!!!&lt;/P&gt;&lt;P&gt;Sokkorn&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 May 2013 10:16:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ODBC-Oracle-Datetime-problem/m-p/390606#M1150201</guid>
      <dc:creator>Sokkorn</dc:creator>
      <dc:date>2013-05-21T10:16:25Z</dc:date>
    </item>
  </channel>
</rss>

