<?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: SQL Command Problem in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/SQL-Command-Problem/m-p/972136#M978577</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Manish,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;could you try this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SQL SELECT * FROM HILCBS."XXHILCBS_MON_DETAILS_INST_ALL"&lt;/P&gt;&lt;P&gt;WHERE LAST_UPDATE_DATE &amp;gt; '$(LastReloadTime)';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 21 Aug 2015 12:42:38 GMT</pubDate>
    <dc:creator>alex_millan</dc:creator>
    <dc:date>2015-08-21T12:42:38Z</dc:date>
    <item>
      <title>SQL Command Problem</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-Command-Problem/m-p/972134#M978575</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;I have a very basic query. I am not able to sort it out. the question seems to very silly though.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am extracting data from ORACLE through SQL Command.. The data is very huge and I don't want to upload the whole data and I would like to do increment loading.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For that purpose I have written script as :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 14pt;"&gt;&lt;STRONG&gt;LET&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 14pt;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 14pt;"&gt;LastReloadTime&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 14pt;"&gt; = &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 14pt;"&gt;ReloadTime&lt;/SPAN&gt;&lt;SPAN style="font-size: 14pt;"&gt;(); &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 14pt;"&gt;&lt;STRONG&gt;SQL&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 14pt;"&gt; SELECT * FROM HILCBS."XXHILCBS_MON_DETAILS_INST_ALL"&lt;BR /&gt; WHERE LAST_UPDATE_DATE &amp;gt;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 14pt;"&gt;$(LastReloadTime)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 14pt;"&gt;; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14pt;"&gt;and the format of LAST_UPDATE_DATE is like for example 21.08.2015 18:00:00.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14pt;"&gt;When executing the script, it is returning error as SQL Command not properly ended.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14pt;"&gt;I know that the LastReloadTime should return as '&lt;SPAN style="font-size: 18pt;"&gt;21.08.2015 18:00:00&lt;/SPAN&gt;'.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14pt;"&gt;I mean to say between hyphen &lt;/SPAN&gt;&lt;SPAN style="font-size: 14pt;"&gt;as shown above.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14pt;"&gt;My RelaodTime is giving me desired format as I have modified the TimeStampFormat accordingly.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14pt;"&gt;How to do that. Any help will be highly appreciated.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14pt;"&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14pt;"&gt;Manish Prasad&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Aug 2015 12:38:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-Command-Problem/m-p/972134#M978575</guid>
      <dc:creator>manpri7078</dc:creator>
      <dc:date>2015-08-21T12:38:37Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Command Problem</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-Command-Problem/m-p/972135#M978576</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is the format of "LAST_UPDATE_DATE"?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also format ReloadTime() with Date() funtion.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Aug 2015 12:41:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-Command-Problem/m-p/972135#M978576</guid>
      <dc:creator>sinanozdemir</dc:creator>
      <dc:date>2015-08-21T12:41:40Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Command Problem</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-Command-Problem/m-p/972136#M978577</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Manish,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;could you try this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SQL SELECT * FROM HILCBS."XXHILCBS_MON_DETAILS_INST_ALL"&lt;/P&gt;&lt;P&gt;WHERE LAST_UPDATE_DATE &amp;gt; '$(LastReloadTime)';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Aug 2015 12:42:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-Command-Problem/m-p/972136#M978577</guid>
      <dc:creator>alex_millan</dc:creator>
      <dc:date>2015-08-21T12:42:38Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Command Problem</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-Command-Problem/m-p/972137#M978578</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Hi can you try by removing double quotes on the table name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- KK - &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Aug 2015 12:45:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-Command-Problem/m-p/972137#M978578</guid>
      <dc:creator>kkkumar82</dc:creator>
      <dc:date>2015-08-21T12:45:36Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Command Problem</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-Command-Problem/m-p/972138#M978579</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: #000000;"&gt;This should work&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;&lt;/P&gt;&lt;PRE __default_attr="xml" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14401612701139281 jive_text_macro" jivemacro_uid="_14401612701139281"&gt;
&lt;P&gt;LET LastReloadTime = TimeStamp(ReloadTime(),'YYYY-MM-DD hh:mm:ss');&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;SQL SELECT * FROM HILCBS. XXHILCBS_MON_DETAILS_INST_ALL&lt;/P&gt;
&lt;P&gt;WHERE LAST_UPDATE_DATE &amp;gt; '$(LastReloadTime)';&lt;/P&gt;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Aug 2015 12:47:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-Command-Problem/m-p/972138#M978579</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2015-08-21T12:47:52Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Command Problem</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-Command-Problem/m-p/972139#M978581</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try&lt;/P&gt;&lt;P&gt;if &lt;SPAN style="color: #0000ff; font-size: 14pt;"&gt;ReloadTime&lt;/SPAN&gt;&lt;SPAN style="font-size: 14pt;"&gt;() returns the defualt timestamp format..&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 14pt;"&gt;&lt;STRONG&gt;LET&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 14pt;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 14pt;"&gt;LastReloadTime&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 14pt;"&gt; = timestamp(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 14pt;"&gt;ReloadTime&lt;/SPAN&gt;&lt;SPAN style="font-size: 14pt;"&gt;(),'DD.MM.YYYY hh:mm:ss'); &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14pt;"&gt;else if it returns a string in the odbc format&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14pt;"&gt;&lt;SPAN style="color: #0000ff; font-size: 14pt;"&gt;&lt;STRONG&gt;LET&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 14pt;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 14pt;"&gt;LastReloadTime&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 14pt;"&gt; = timestamp(timestamp#(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 14pt;"&gt;ReloadTime&lt;/SPAN&gt;&lt;SPAN style="font-size: 14pt;"&gt;(),'YYYY-MM-DD hh:mm:ss'),'DD.MM.YYYY hh:mm:ss'); &lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 14pt;"&gt;&lt;STRONG&gt;SQL&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 14pt;"&gt; SELECT * FROM HILCBS."XXHILCBS_MON_DETAILS_INST_ALL"&lt;BR /&gt; WHERE LAST_UPDATE_DATE &amp;gt;'&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 14pt;"&gt;$(LastReloadTime)'&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 14pt;"&gt;; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14pt;"&gt;hth&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14pt;"&gt;Sasi&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Aug 2015 13:15:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-Command-Problem/m-p/972139#M978581</guid>
      <dc:creator>sasiparupudi1</dc:creator>
      <dc:date>2015-08-21T13:15:36Z</dc:date>
    </item>
  </channel>
</rss>

