<?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: Can I apply a string function to a field I get via a SQL select statement in Qlik Learning Discussions</title>
    <link>https://community.qlik.com/t5/Qlik-Learning-Discussions/Can-I-apply-a-string-function-to-a-field-I-get-via-a-SQL-select/m-p/817412#M2815</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would suggest you make this kind of cleaning a preceeding load:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ODBC CONNECT TO SOME_DB;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load keepchar(DNIS, '0123456789') as DNIS;&lt;/P&gt;&lt;P&gt;SQL SELECT ..., phone_home as DNIS... FROM SOME_DB.leads where deleted &amp;lt;&amp;gt; 1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 Feb 2015 11:31:06 GMT</pubDate>
    <dc:creator>marcus_sommer</dc:creator>
    <dc:date>2015-02-17T11:31:06Z</dc:date>
    <item>
      <title>Can I apply a string function to a field I get via a SQL select statement</title>
      <link>https://community.qlik.com/t5/Qlik-Learning-Discussions/Can-I-apply-a-string-function-to-a-field-I-get-via-a-SQL-select/m-p/817411#M2814</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;newbie question here I'm sure:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to clean up a text string that is retrieved as a field from a SQL Select statement so that I can join it to another field loaded from a Table file. I am trying to avoid having to do multiple replace() functions in my select statement and was hoping to rely on the allow() function in QlikView. So, is it possible to update the value of a field that is loaded via SQL select and if so how.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ideally I'd be able to do something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;ODBC CONNECT TO SOME_DB;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;LET DNIS = string.allow(SOME_DB.DNIS,'0123456789');&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;SQL SELECT ..., phone_home as DNIS... FROM SOME_DB.leads where deleted &amp;lt;&amp;gt; 1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so that the field DNIS now only includes numeric characters.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Feb 2015 21:43:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Learning-Discussions/Can-I-apply-a-string-function-to-a-field-I-get-via-a-SQL-select/m-p/817411#M2814</guid>
      <dc:creator />
      <dc:date>2015-02-16T21:43:58Z</dc:date>
    </item>
    <item>
      <title>Re: Can I apply a string function to a field I get via a SQL select statement</title>
      <link>https://community.qlik.com/t5/Qlik-Learning-Discussions/Can-I-apply-a-string-function-to-a-field-I-get-via-a-SQL-select/m-p/817412#M2815</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would suggest you make this kind of cleaning a preceeding load:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ODBC CONNECT TO SOME_DB;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load keepchar(DNIS, '0123456789') as DNIS;&lt;/P&gt;&lt;P&gt;SQL SELECT ..., phone_home as DNIS... FROM SOME_DB.leads where deleted &amp;lt;&amp;gt; 1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Feb 2015 11:31:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Learning-Discussions/Can-I-apply-a-string-function-to-a-field-I-get-via-a-SQL-select/m-p/817412#M2815</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2015-02-17T11:31:06Z</dc:date>
    </item>
    <item>
      <title>Re: Can I apply a string function to a field I get via a SQL select statement</title>
      <link>https://community.qlik.com/t5/Qlik-Learning-Discussions/Can-I-apply-a-string-function-to-a-field-I-get-via-a-SQL-select/m-p/817413#M2816</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Marcus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you. That worked exactly as expected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Feb 2015 16:19:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Learning-Discussions/Can-I-apply-a-string-function-to-a-field-I-get-via-a-SQL-select/m-p/817413#M2816</guid>
      <dc:creator />
      <dc:date>2015-02-17T16:19:56Z</dc:date>
    </item>
    <item>
      <title>Re: Can I apply a string function to a field I get via a SQL select statement</title>
      <link>https://community.qlik.com/t5/Qlik-Learning-Discussions/Can-I-apply-a-string-function-to-a-field-I-get-via-a-SQL-select/m-p/817414#M2817</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;@Paul; You should mark Marcus succession as answer.&lt;BR /&gt;&lt;BR /&gt; @Marcus; that was helpful suggestion&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Mar 2015 06:26:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Learning-Discussions/Can-I-apply-a-string-function-to-a-field-I-get-via-a-SQL-select/m-p/817414#M2817</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-03-05T06:26:04Z</dc:date>
    </item>
    <item>
      <title>Re: Can I apply a string function to a field I get via a SQL select statement</title>
      <link>https://community.qlik.com/t5/Qlik-Learning-Discussions/Can-I-apply-a-string-function-to-a-field-I-get-via-a-SQL-select/m-p/817415#M2818</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Mar 2015 16:40:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Learning-Discussions/Can-I-apply-a-string-function-to-a-field-I-get-via-a-SQL-select/m-p/817415#M2818</guid>
      <dc:creator />
      <dc:date>2015-03-05T16:40:06Z</dc:date>
    </item>
  </channel>
</rss>

