<?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 DateTime field in sql in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/DateTime-field-in-sql/m-p/410504#M697373</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello.&lt;/P&gt;&lt;P&gt;in a variable&lt;/P&gt;&lt;P&gt;let test = peek ('maxdata');&lt;/P&gt;&lt;P&gt;I have a decimal number (eg. 41535.528542708) that represents the date and time of a field stored in a QVD file.&lt;/P&gt;&lt;P&gt;To do an incremental load, I have to compare this value to a DateTime field, TBModified of Sql server 2008 R2, placed on a table SQL.&lt;/P&gt;&lt;P&gt;I can not, because of my ignorance, to write correctly the Where clause&lt;/P&gt;&lt;P&gt;eg.&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;TBModified;&lt;/P&gt;&lt;P&gt;Sql Select *&lt;/P&gt;&lt;P&gt;FROM DBtableName&lt;/P&gt;&lt;P&gt;where TBModified&amp;gt; = test;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where the comparison is not done correctly and / or I get a conversion error.&lt;/P&gt;&lt;P&gt;thank you in advance for your help.&lt;/P&gt;&lt;P&gt;hello&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 05 Mar 2013 19:39:04 GMT</pubDate>
    <dc:creator>francofiorillo</dc:creator>
    <dc:date>2013-03-05T19:39:04Z</dc:date>
    <item>
      <title>DateTime field in sql</title>
      <link>https://community.qlik.com/t5/QlikView/DateTime-field-in-sql/m-p/410504#M697373</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello.&lt;/P&gt;&lt;P&gt;in a variable&lt;/P&gt;&lt;P&gt;let test = peek ('maxdata');&lt;/P&gt;&lt;P&gt;I have a decimal number (eg. 41535.528542708) that represents the date and time of a field stored in a QVD file.&lt;/P&gt;&lt;P&gt;To do an incremental load, I have to compare this value to a DateTime field, TBModified of Sql server 2008 R2, placed on a table SQL.&lt;/P&gt;&lt;P&gt;I can not, because of my ignorance, to write correctly the Where clause&lt;/P&gt;&lt;P&gt;eg.&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;TBModified;&lt;/P&gt;&lt;P&gt;Sql Select *&lt;/P&gt;&lt;P&gt;FROM DBtableName&lt;/P&gt;&lt;P&gt;where TBModified&amp;gt; = test;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where the comparison is not done correctly and / or I get a conversion error.&lt;/P&gt;&lt;P&gt;thank you in advance for your help.&lt;/P&gt;&lt;P&gt;hello&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Mar 2013 19:39:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/DateTime-field-in-sql/m-p/410504#M697373</guid>
      <dc:creator>francofiorillo</dc:creator>
      <dc:date>2013-03-05T19:39:04Z</dc:date>
    </item>
    <item>
      <title>Re: DateTime field in sql</title>
      <link>https://community.qlik.com/t5/QlikView/DateTime-field-in-sql/m-p/410505#M697374</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You got the reason right, it is about data format.&amp;nbsp; Recommendation:&lt;BR /&gt;- format your vaiable as date/time: let test = &lt;STRONG&gt;timestamp(peek ('maxdata'));&lt;/STRONG&gt;&lt;BR /&gt;- condition should be where TBModified&amp;gt; =&lt;STRONG&gt; '$(test)'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See if it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Mar 2013 21:42:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/DateTime-field-in-sql/m-p/410505#M697374</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-03-05T21:42:13Z</dc:date>
    </item>
  </channel>
</rss>

