<?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: Where Statement/ MySQL-Source in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Where-Statement-MySQL-Source/m-p/520260#M1131170</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the Where Clause is part of the SQL statement against the database. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: rgba(255, 255, 255, 0);"&gt;If field modified_time is a date/timestamp you shoud use MySql STR_TO_DATE function:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: rgba(255, 255, 255, 0);"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="dp-highlighter"&gt;&lt;/P&gt;&lt;DIV class="bar" style="font-style: inherit;"&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757; font-style: inherit; font-size: 10pt; background-color: rgba(255, 255, 255, 0); font-family: arial, helvetica, sans-serif;"&gt;WHERE modified_time &amp;gt;= STR_TO_DATE('$(vmrD)','%Y-%m-%d %h:%i:%s');&amp;nbsp; -- if timestamp format is YYYY-MM-DD HH24:MI:SS&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;DIV class="dir-ltr" dir="ltr"&gt; &lt;/DIV&gt;&lt;DIV class="dir-ltr" dir="ltr"&gt;- Ralf&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #333333; font-family: Georgia, Palatino, 'Helvetica Neue', Helvetica, Arial, sans-serif !important; font-size: 18px !important;"&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 Nov 2013 09:19:30 GMT</pubDate>
    <dc:creator>rbecher</dc:creator>
    <dc:date>2013-11-14T09:19:30Z</dc:date>
    <item>
      <title>Where Statement/ MySQL-Source</title>
      <link>https://community.qlik.com/t5/QlikView/Where-Statement-MySQL-Source/m-p/520252#M1131162</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Noob Question:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying&amp;nbsp; to use a WHERE Statement in a QV-Script with an ODBC-Connect to a MySQL-Server an a local qvw.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;...&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Let vmrD = Peek('modified_time', -1, 'statistics'); &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;...&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;id,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;modified time&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Field B,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Field C&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;FROM `db_main`.statistics&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;WHERE modified_time&amp;nbsp; &amp;gt;= $(vmrD);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But WHERE doesn't work with the given Data-Source [even if i ad (mq)] &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Is there an alternative way or a workaorund ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Nov 2013 20:28:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-Statement-MySQL-Source/m-p/520252#M1131162</guid>
      <dc:creator />
      <dc:date>2013-11-13T20:28:29Z</dc:date>
    </item>
    <item>
      <title>Re: Where Statement/ MySQL-Source</title>
      <link>https://community.qlik.com/t5/QlikView/Where-Statement-MySQL-Source/m-p/520253#M1131163</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try adding ` `&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;WHERE `modified_time` &amp;gt;= $(vmrD);&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Nov 2013 20:34:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-Statement-MySQL-Source/m-p/520253#M1131163</guid>
      <dc:creator>rustyfishbones</dc:creator>
      <dc:date>2013-11-13T20:34:30Z</dc:date>
    </item>
    <item>
      <title>Re: Where Statement/ MySQL-Source</title>
      <link>https://community.qlik.com/t5/QlikView/Where-Statement-MySQL-Source/m-p/520254#M1131164</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-family: inherit;"&gt;LOAD&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-family: inherit;"&gt;id,&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-family: inherit;"&gt;modified time&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-family: inherit;"&gt;Field B,&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-family: inherit;"&gt;Field C&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-family: inherit;"&gt;FROM `db_main`.statistics&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;WHERE modified_time&amp;nbsp; &amp;gt;= &lt;SPAN style="font-size: 14pt; color: #ff0000;"&gt;'&lt;/SPAN&gt;$(vmrD)&lt;EM style="color: #ff0000; font-size: 14pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;';&lt;/EM&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Nov 2013 20:46:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-Statement-MySQL-Source/m-p/520254#M1131164</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-11-13T20:46:39Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Where Statement/ MySQL-Source</title>
      <link>https://community.qlik.com/t5/QlikView/Where-Statement-MySQL-Source/m-p/520255#M1131165</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you are running 11.20 SR4 there is an issue with Grave Accents &lt;SPAN style="color: #ff0000;"&gt;`` &lt;SPAN style="color: #000000;"&gt;you will need to user&lt;/SPAN&gt; [ ] &lt;SPAN style="color: #000000;"&gt;or&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;SPAN style="color: #000000;"&gt;Bill&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Nov 2013 20:54:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-Statement-MySQL-Source/m-p/520255#M1131165</guid>
      <dc:creator>Bill_Britt</dc:creator>
      <dc:date>2013-11-13T20:54:54Z</dc:date>
    </item>
    <item>
      <title>Re: Where Statement/ MySQL-Source</title>
      <link>https://community.qlik.com/t5/QlikView/Where-Statement-MySQL-Source/m-p/520256#M1131166</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I´m not seeing the&lt;/P&gt;&lt;P&gt;SQL SELECT command into your code&lt;/P&gt;&lt;P&gt;Do you have it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Nov 2013 20:55:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-Statement-MySQL-Source/m-p/520256#M1131166</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2013-11-13T20:55:13Z</dc:date>
    </item>
    <item>
      <title>Re: Where Statement/ MySQL-Source</title>
      <link>https://community.qlik.com/t5/QlikView/Where-Statement-MySQL-Source/m-p/520257#M1131167</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if field modified_time is a date/timestamp you shoud use MySql STR_TO_DATE function:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="_jivemacro_uid_13843762008609553 jive_text_macro jive_macro_code" jivemacro_uid="_13843762008609553" modifiedtitle="true"&gt;
&lt;P&gt;WHERE modified_time &amp;gt;= STR_TO_DATE('&lt;EM&gt;$(vmrD)&lt;/EM&gt;','%Y-%m-%d %h:%i:%s');&amp;nbsp; -- if timestamp format is YYYY-MM-DD HH24:MI:SS&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please also take a look here:&lt;A href="http://www.sqlines.com/mysql/functions/str_to_date" title="http://www.sqlines.com/mysql/functions/str_to_date"&gt;http://www.sqlines.com/mysql/functions/str_to_date&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Ralf&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Nov 2013 20:57:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-Statement-MySQL-Source/m-p/520257#M1131167</guid>
      <dc:creator>rbecher</dc:creator>
      <dc:date>2013-11-13T20:57:51Z</dc:date>
    </item>
    <item>
      <title>Re: Where Statement/ MySQL-Source</title>
      <link>https://community.qlik.com/t5/QlikView/Where-Statement-MySQL-Source/m-p/520258#M1131168</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to use a SQL SELECT if you want to connect to the database. A Load ... From will load from a file source, e.g. Excel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Nov 2013 08:36:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-Statement-MySQL-Source/m-p/520258#M1131168</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2013-11-14T08:36:35Z</dc:date>
    </item>
    <item>
      <title>Re: Where Statement/ MySQL-Source</title>
      <link>https://community.qlik.com/t5/QlikView/Where-Statement-MySQL-Source/m-p/520259#M1131169</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there a way to use&amp;nbsp; &lt;EM&gt;WHERE &lt;/EM&gt;after the SQL-Connect? Something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;SQL SELECT * FROM `db_main`.statistics&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;WHERE modified_time&amp;nbsp; &amp;gt;= $(vmrD);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or is it necessary to store the Tables in a file source first and LOAD (again) ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;11.20 SR3 x64&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Nov 2013 09:11:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-Statement-MySQL-Source/m-p/520259#M1131169</guid>
      <dc:creator />
      <dc:date>2013-11-14T09:11:22Z</dc:date>
    </item>
    <item>
      <title>Re: Where Statement/ MySQL-Source</title>
      <link>https://community.qlik.com/t5/QlikView/Where-Statement-MySQL-Source/m-p/520260#M1131170</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the Where Clause is part of the SQL statement against the database. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: rgba(255, 255, 255, 0);"&gt;If field modified_time is a date/timestamp you shoud use MySql STR_TO_DATE function:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: rgba(255, 255, 255, 0);"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="dp-highlighter"&gt;&lt;/P&gt;&lt;DIV class="bar" style="font-style: inherit;"&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757; font-style: inherit; font-size: 10pt; background-color: rgba(255, 255, 255, 0); font-family: arial, helvetica, sans-serif;"&gt;WHERE modified_time &amp;gt;= STR_TO_DATE('$(vmrD)','%Y-%m-%d %h:%i:%s');&amp;nbsp; -- if timestamp format is YYYY-MM-DD HH24:MI:SS&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;DIV class="dir-ltr" dir="ltr"&gt; &lt;/DIV&gt;&lt;DIV class="dir-ltr" dir="ltr"&gt;- Ralf&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #333333; font-family: Georgia, Palatino, 'Helvetica Neue', Helvetica, Arial, sans-serif !important; font-size: 18px !important;"&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Nov 2013 09:19:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-Statement-MySQL-Source/m-p/520260#M1131170</guid>
      <dc:creator>rbecher</dc:creator>
      <dc:date>2013-11-14T09:19:30Z</dc:date>
    </item>
  </channel>
</rss>

