<?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: Change number Format MySQL field in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Change-number-Format-MySQL-field/m-p/868541#M659831</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is helpful to use preceding load, so you can use SQL functions in the SQL SELECT part and QV functions in LOAD part:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;If(Len(number)=9,Left(number,8) as Number&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;SQL SELCT&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;number&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;FROM my table;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 20 Apr 2015 13:21:19 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-04-20T13:21:19Z</dc:date>
    <item>
      <title>Change number Format MySQL field</title>
      <link>https://community.qlik.com/t5/QlikView/Change-number-Format-MySQL-field/m-p/868539#M659827</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everybody,&lt;/P&gt;&lt;P&gt;I am just starting the qlikview connection with a MySql DataBase and I've encountered my first problem which is giving me a hard time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is my problem:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have this sequence of numbers:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;123456789&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but I just need the first 8 numbers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As a qlikview script I used the following sentence: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;If(Len(number)=9,Left(number,8) as Number&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but with the MySql script I can't find a similar function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anybody help me?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Apr 2015 13:16:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Change-number-Format-MySQL-field/m-p/868539#M659827</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-20T13:16:56Z</dc:date>
    </item>
    <item>
      <title>Re: Change number Format MySQL field</title>
      <link>https://community.qlik.com/t5/QlikView/Change-number-Format-MySQL-field/m-p/868540#M659829</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Looks like it's&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" summary="String Operators"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD scope="row"&gt;&lt;A class="link" href="https://dev.mysql.com/doc/refman/5.0/en/string-functions.html#function_left"&gt;&lt;CODE class="literal"&gt;&lt;SPAN style="color: #0066cc; text-decoration: underline;"&gt;LEFT()&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/A&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Return the leftmost number of characters as specified&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://dev.mysql.com/doc/refman/5.0/en/string-functions.html"&gt;https://dev.mysql.com/doc/refman/5.0/en/string-functions.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Apr 2015 13:19:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Change-number-Format-MySQL-field/m-p/868540#M659829</guid>
      <dc:creator>awhitfield</dc:creator>
      <dc:date>2015-04-20T13:19:43Z</dc:date>
    </item>
    <item>
      <title>Re: Change number Format MySQL field</title>
      <link>https://community.qlik.com/t5/QlikView/Change-number-Format-MySQL-field/m-p/868541#M659831</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is helpful to use preceding load, so you can use SQL functions in the SQL SELECT part and QV functions in LOAD part:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;If(Len(number)=9,Left(number,8) as Number&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;SQL SELCT&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;number&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;FROM my table;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Apr 2015 13:21:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Change-number-Format-MySQL-field/m-p/868541#M659831</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-20T13:21:19Z</dc:date>
    </item>
    <item>
      <title>Re: Change number Format MySQL field</title>
      <link>https://community.qlik.com/t5/QlikView/Change-number-Format-MySQL-field/m-p/868542#M659833</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;Qlikview have Left() but you missed closing bracket&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;If(Len(number)=9,Left(number,8)) as Number&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Apr 2015 13:23:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Change-number-Format-MySQL-field/m-p/868542#M659833</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2015-04-20T13:23:25Z</dc:date>
    </item>
  </channel>
</rss>

