<?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 Has anyone worked with INTERVAL DAY TO SECOND Data Type over ODBC? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Has-anyone-worked-with-INTERVAL-DAY-TO-SECOND-Data-Type-over/m-p/286966#M708501</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am currently working with an Oracle table that stores some columns as &lt;/P&gt;&lt;H4 class="sect3" id="autoId19" style="font-size: 16px; color: #000000; font-family: Tahoma, sans-serif; text-align: -webkit-auto; background-color: #ffffff;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;INTERVAL DAY TO SECOND Data Type&lt;/SPAN&gt;&lt;/H4&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;as I am retrieving the data over ODBC I get a "ODBC read error".&lt;/P&gt;&lt;P&gt;if I remove this field and get all other fields it works fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has anyone out here used such a data type on oracle table and fetched it to QlikView?&lt;/P&gt;&lt;P&gt;what options are available?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Leo V.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 01 Nov 2011 09:06:37 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-11-01T09:06:37Z</dc:date>
    <item>
      <title>Has anyone worked with INTERVAL DAY TO SECOND Data Type over ODBC?</title>
      <link>https://community.qlik.com/t5/QlikView/Has-anyone-worked-with-INTERVAL-DAY-TO-SECOND-Data-Type-over/m-p/286966#M708501</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am currently working with an Oracle table that stores some columns as &lt;/P&gt;&lt;H4 class="sect3" id="autoId19" style="font-size: 16px; color: #000000; font-family: Tahoma, sans-serif; text-align: -webkit-auto; background-color: #ffffff;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;INTERVAL DAY TO SECOND Data Type&lt;/SPAN&gt;&lt;/H4&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;as I am retrieving the data over ODBC I get a "ODBC read error".&lt;/P&gt;&lt;P&gt;if I remove this field and get all other fields it works fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has anyone out here used such a data type on oracle table and fetched it to QlikView?&lt;/P&gt;&lt;P&gt;what options are available?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Leo V.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Nov 2011 09:06:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Has-anyone-worked-with-INTERVAL-DAY-TO-SECOND-Data-Type-over/m-p/286966#M708501</guid>
      <dc:creator />
      <dc:date>2011-11-01T09:06:37Z</dc:date>
    </item>
    <item>
      <title>Has anyone worked with INTERVAL DAY TO SECOND Data Type over ODBC?</title>
      <link>https://community.qlik.com/t5/QlikView/Has-anyone-worked-with-INTERVAL-DAY-TO-SECOND-Data-Type-over/m-p/286967#M708502</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Leo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can use a date operation (+/-) to convert this interval type to a number:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT (duration + trunc(sysdate) - trunc(sysdate)) as n_duration FROM ... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or you can extract pieces and combine them:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT EXTRACT(DAY FROM duration) ||&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ' days, ' || EXTRACT (HOUR FROM duration) ||&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ' hours, ' || EXTRACT (MINUTE FROM duration) ||&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ' minutes' as c_duration&lt;/P&gt;&lt;P&gt;FROM ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It depends what you want to do with the interval value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Ralf&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Nov 2011 10:24:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Has-anyone-worked-with-INTERVAL-DAY-TO-SECOND-Data-Type-over/m-p/286967#M708502</guid>
      <dc:creator>rbecher</dc:creator>
      <dc:date>2011-11-01T10:24:20Z</dc:date>
    </item>
  </channel>
</rss>

