<?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: Qlikview  - SQL replace statement error in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Qlikview-SQL-replace-statement-error/m-p/963722#M644340</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;may be like this&lt;/P&gt;&lt;P&gt;select &lt;/P&gt;&lt;P&gt;t.tpc_num, &lt;/P&gt;&lt;P&gt;replace(t.tpc_subject, ',',' ') &lt;STRONG&gt;as tpc_subject&lt;/STRONG&gt;, &lt;/P&gt;&lt;P&gt;t.create_time, &lt;/P&gt;&lt;P&gt;t.closed_time, &lt;/P&gt;&lt;P&gt;s.status_name, &lt;/P&gt;&lt;P&gt;m.mpt_num, &lt;/P&gt;&lt;P&gt;c.item_type &lt;/P&gt;&lt;P&gt;FROM tpc t WITH(NOLOCK);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 07 Dec 2015 18:55:33 GMT</pubDate>
    <dc:creator>Kushal_Chawda</dc:creator>
    <dc:date>2015-12-07T18:55:33Z</dc:date>
    <item>
      <title>Qlikview  - SQL replace statement error</title>
      <link>https://community.qlik.com/t5/QlikView/Qlikview-SQL-replace-statement-error/m-p/963720#M644338</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;In SQL 2012, I'm using the replace query as shown below with no problem. However, when I used in the script editor, it returned an error in Qlikview.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select &lt;/P&gt;&lt;P&gt;t.tpc_num, &lt;/P&gt;&lt;P&gt;replace(t.tpc_subject, ',',' '), &lt;/P&gt;&lt;P&gt;t.create_time, &lt;/P&gt;&lt;P&gt;t.closed_time, &lt;/P&gt;&lt;P&gt;s.status_name, &lt;/P&gt;&lt;P&gt;m.mpt_num, &lt;/P&gt;&lt;P&gt;c.item_type &lt;/P&gt;&lt;P&gt;FROM tpc t WITH(NOLOCK);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please assist.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Dec 2015 15:35:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Qlikview-SQL-replace-statement-error/m-p/963720#M644338</guid>
      <dc:creator>loke2014</dc:creator>
      <dc:date>2015-12-07T15:35:15Z</dc:date>
    </item>
    <item>
      <title>Re: Qlikview  - SQL replace statement error</title>
      <link>https://community.qlik.com/t5/QlikView/Qlikview-SQL-replace-statement-error/m-p/963721#M644339</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try loading the t.tpc_Subject field as is and then do the replace in a preceding load.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Dec 2015 18:43:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Qlikview-SQL-replace-statement-error/m-p/963721#M644339</guid>
      <dc:creator>m_woolf</dc:creator>
      <dc:date>2015-12-07T18:43:37Z</dc:date>
    </item>
    <item>
      <title>Re: Qlikview  - SQL replace statement error</title>
      <link>https://community.qlik.com/t5/QlikView/Qlikview-SQL-replace-statement-error/m-p/963722#M644340</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;may be like this&lt;/P&gt;&lt;P&gt;select &lt;/P&gt;&lt;P&gt;t.tpc_num, &lt;/P&gt;&lt;P&gt;replace(t.tpc_subject, ',',' ') &lt;STRONG&gt;as tpc_subject&lt;/STRONG&gt;, &lt;/P&gt;&lt;P&gt;t.create_time, &lt;/P&gt;&lt;P&gt;t.closed_time, &lt;/P&gt;&lt;P&gt;s.status_name, &lt;/P&gt;&lt;P&gt;m.mpt_num, &lt;/P&gt;&lt;P&gt;c.item_type &lt;/P&gt;&lt;P&gt;FROM tpc t WITH(NOLOCK);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Dec 2015 18:55:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Qlikview-SQL-replace-statement-error/m-p/963722#M644340</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2015-12-07T18:55:33Z</dc:date>
    </item>
    <item>
      <title>Re: Qlikview  - SQL replace statement error</title>
      <link>https://community.qlik.com/t5/QlikView/Qlikview-SQL-replace-statement-error/m-p/963723#M644342</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you sure the problem is in replace function?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just tried with a replace as your and I didn't get any error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also I've seen you have some other table alias in your code (bold) s, m, c but the table are missing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM&gt;select&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM&gt;t.tpc_num,&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM&gt;replace(t.tpc_subject, ',',' '),&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM&gt;t.create_time,&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM&gt;t.closed_time,&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM&gt;&lt;STRONG&gt;s.status_name,&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;&lt;EM&gt;m.mpt_num,&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;&lt;EM&gt;c.item_type&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM&gt;FROM tpc t WITH(NOLOCK);&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Dec 2015 19:18:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Qlikview-SQL-replace-statement-error/m-p/963723#M644342</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2015-12-07T19:18:04Z</dc:date>
    </item>
    <item>
      <title>Re: Qlikview  - SQL replace statement error</title>
      <link>https://community.qlik.com/t5/QlikView/Qlikview-SQL-replace-statement-error/m-p/963724#M644343</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's always great to get hold of the actual error message text. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BTW the QlikView scripting engine puts everything between (SQL) SELECT and the semicolon as-is in a packet buffer and sends it unparsed to the Relational Database. It would be weird for QlikView &lt;SPAN style="font-size: 13.3333px;"&gt;instead of the RDBMS parser&lt;/SPAN&gt; to return an error for bad SQL syntax...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Dec 2015 20:04:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Qlikview-SQL-replace-statement-error/m-p/963724#M644343</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2015-12-07T20:04:32Z</dc:date>
    </item>
    <item>
      <title>Re: Qlikview  - SQL replace statement error</title>
      <link>https://community.qlik.com/t5/QlikView/Qlikview-SQL-replace-statement-error/m-p/963725#M644344</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thanks for all the feedback.&amp;nbsp; &lt;A _jive_internal="true" class="jiveTT-hover-user jive-username-link" data-avatarid="1024" data-externalid="" data-presence="null" data-userid="57428" data-username="Kush141087" href="https://community.qlik.com/people/Kush141087"&gt;&lt;STRONG style=": ; color: #000080; text-decoration: underline;"&gt;Kush141087&lt;/STRONG&gt;&lt;/A&gt; gave me the correct working solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Dec 2015 01:52:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Qlikview-SQL-replace-statement-error/m-p/963725#M644344</guid>
      <dc:creator>loke2014</dc:creator>
      <dc:date>2015-12-08T01:52:47Z</dc:date>
    </item>
  </channel>
</rss>

