<?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 Combine Date + Time from qvd and compare to SQL with different format in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Combine-Date-Time-from-qvd-and-compare-to-SQL-with-different/m-p/1950166#M1290239</link>
    <description>&lt;P&gt;Hello everyone,&lt;/P&gt;
&lt;P&gt;I need to find the row with the latest date and time from a qvd file and compare it with a table in SQL.&lt;/P&gt;
&lt;P&gt;The problem is that Date and Time, in both cases (qvd &amp;amp; sql) are in two separate columns,&lt;/P&gt;
&lt;P&gt;plus, in different formats.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I also experienced some trouble trying to find the max date from qvd and then covert it back to a date format.&lt;/P&gt;
&lt;P&gt;the dates in the qvds are stored like this:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;NUM([ActionResultDate]) AS ActionResultDate_KEY&lt;BR /&gt;TIME([ActionResultTime],'hh:mm:ss') AS ActionResultTime&lt;/P&gt;
&lt;P&gt;while in SQL like this:&lt;/P&gt;
&lt;P&gt;[ActionResultDate] = date&amp;nbsp; (example 2022-04-04)&lt;/P&gt;
&lt;P&gt;[ActionResultTime] =&amp;nbsp;varchar(10) (example 15:03:26)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;General specifications of the qvw is:&lt;/P&gt;
&lt;P&gt;general qvd file format -&amp;gt;&lt;/P&gt;
&lt;P&gt;date:&amp;nbsp;'DD/MM/YYYY',&amp;nbsp;&lt;/P&gt;
&lt;P&gt;time:&amp;nbsp;&amp;nbsp;'h:mm:ss TT' ,&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;TimestampFormat='DD/MM/YYYY hh:mm:ss[.fff] TT'&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I need to bring the latest date and time from the qvd in order to push in into a where clause while loading other data from an sql table.&lt;/P&gt;
&lt;P&gt;What I need the dates &amp;amp; time for:&lt;/P&gt;
&lt;P&gt;Table:&lt;/P&gt;
&lt;P&gt;Load a,b,c&lt;/P&gt;
&lt;P&gt;select a,b,c&lt;/P&gt;
&lt;P&gt;from&amp;nbsp; SQLtable&lt;/P&gt;
&lt;P&gt;where ([ActionResultDate] +&amp;nbsp;[ActionResultTime])&amp;nbsp; &amp;gt;&amp;nbsp; $(LastUpdatedDate&amp;amp;Time from the qvd file)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;thank you so much for your time!&lt;/P&gt;</description>
    <pubDate>Mon, 26 Jan 2026 18:19:17 GMT</pubDate>
    <dc:creator>BillZrv</dc:creator>
    <dc:date>2026-01-26T18:19:17Z</dc:date>
    <item>
      <title>Combine Date + Time from qvd and compare to SQL with different format</title>
      <link>https://community.qlik.com/t5/QlikView/Combine-Date-Time-from-qvd-and-compare-to-SQL-with-different/m-p/1950166#M1290239</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;
&lt;P&gt;I need to find the row with the latest date and time from a qvd file and compare it with a table in SQL.&lt;/P&gt;
&lt;P&gt;The problem is that Date and Time, in both cases (qvd &amp;amp; sql) are in two separate columns,&lt;/P&gt;
&lt;P&gt;plus, in different formats.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I also experienced some trouble trying to find the max date from qvd and then covert it back to a date format.&lt;/P&gt;
&lt;P&gt;the dates in the qvds are stored like this:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;NUM([ActionResultDate]) AS ActionResultDate_KEY&lt;BR /&gt;TIME([ActionResultTime],'hh:mm:ss') AS ActionResultTime&lt;/P&gt;
&lt;P&gt;while in SQL like this:&lt;/P&gt;
&lt;P&gt;[ActionResultDate] = date&amp;nbsp; (example 2022-04-04)&lt;/P&gt;
&lt;P&gt;[ActionResultTime] =&amp;nbsp;varchar(10) (example 15:03:26)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;General specifications of the qvw is:&lt;/P&gt;
&lt;P&gt;general qvd file format -&amp;gt;&lt;/P&gt;
&lt;P&gt;date:&amp;nbsp;'DD/MM/YYYY',&amp;nbsp;&lt;/P&gt;
&lt;P&gt;time:&amp;nbsp;&amp;nbsp;'h:mm:ss TT' ,&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;TimestampFormat='DD/MM/YYYY hh:mm:ss[.fff] TT'&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I need to bring the latest date and time from the qvd in order to push in into a where clause while loading other data from an sql table.&lt;/P&gt;
&lt;P&gt;What I need the dates &amp;amp; time for:&lt;/P&gt;
&lt;P&gt;Table:&lt;/P&gt;
&lt;P&gt;Load a,b,c&lt;/P&gt;
&lt;P&gt;select a,b,c&lt;/P&gt;
&lt;P&gt;from&amp;nbsp; SQLtable&lt;/P&gt;
&lt;P&gt;where ([ActionResultDate] +&amp;nbsp;[ActionResultTime])&amp;nbsp; &amp;gt;&amp;nbsp; $(LastUpdatedDate&amp;amp;Time from the qvd file)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;thank you so much for your time!&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jan 2026 18:19:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Combine-Date-Time-from-qvd-and-compare-to-SQL-with-different/m-p/1950166#M1290239</guid>
      <dc:creator>BillZrv</dc:creator>
      <dc:date>2026-01-26T18:19:17Z</dc:date>
    </item>
  </channel>
</rss>

