<?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 ' in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/SQL/m-p/602541#M222728</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nicole, thanks for your answer but the problem it's with the ' in the sql. I don´t know how to concatenate in the sql, That cause a error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry my english is bad &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 20 Mar 2014 16:22:20 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-03-20T16:22:20Z</dc:date>
    <item>
      <title>SQL '</title>
      <link>https://community.qlik.com/t5/QlikView/SQL/m-p/602538#M222725</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hola,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Necesito ayuda amigos, estoy intentando realizar una consulta sql como variable, pero esta lleva un campo con ' '. Esto hace que la variable se corte y no se genere de buena forma la consulta. Como puedo mostrar dentro de una variable el signo '.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Les dejo la consulta.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vSqlIMHIST= 'select ordno, itnbr,house,trqty, tramt,trndt from amflibx.imhist&amp;nbsp; where house not like 'X%' and trqty &amp;gt; 0 and trndt between&amp;nbsp; {1} and {2} and tcode = 'RP';&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Mar 2014 16:00:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL/m-p/602538#M222725</guid>
      <dc:creator />
      <dc:date>2014-03-20T16:00:01Z</dc:date>
    </item>
    <item>
      <title>Re: SQL '</title>
      <link>https://community.qlik.com/t5/QlikView/SQL/m-p/602539#M222726</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SET vSqlIMHIST=select ordno, itnbr,house,trqty, tramt,trndt from amflibx.imhist&amp;nbsp; where house not like 'X%' and trqty &amp;gt; 0 and trndt between&amp;nbsp; {1} and {2} and tcode = 'RP'; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then to call it:&lt;/P&gt;&lt;P&gt;$(vSqlIMHIST);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Mar 2014 16:13:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL/m-p/602539#M222726</guid>
      <dc:creator>Nicole-Smith</dc:creator>
      <dc:date>2014-03-20T16:13:21Z</dc:date>
    </item>
    <item>
      <title>Re: SQL '</title>
      <link>https://community.qlik.com/t5/QlikView/SQL/m-p/602540#M222727</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;LET vSqlIMHIST= 'select ordno, itnbr,house,trqty, tramt,trndt from amflibx.imhist&amp;nbsp; where house not like ''X%'' and trqty &amp;gt; 0 and trndt between&amp;nbsp; {1} and {2} and tcode = ''RP'''; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Angad&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Mar 2014 16:15:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL/m-p/602540#M222727</guid>
      <dc:creator />
      <dc:date>2014-03-20T16:15:00Z</dc:date>
    </item>
    <item>
      <title>Re: SQL '</title>
      <link>https://community.qlik.com/t5/QlikView/SQL/m-p/602541#M222728</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nicole, thanks for your answer but the problem it's with the ' in the sql. I don´t know how to concatenate in the sql, That cause a error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry my english is bad &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Mar 2014 16:22:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL/m-p/602541#M222728</guid>
      <dc:creator />
      <dc:date>2014-03-20T16:22:20Z</dc:date>
    </item>
    <item>
      <title>Re: SQL '</title>
      <link>https://community.qlik.com/t5/QlikView/SQL/m-p/602542#M222729</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think the problem is with your between:&lt;/P&gt;&lt;P&gt;SET vSqlIMHIST=select ordno, itnbr,house,trqty, tramt,trndt from amflibx.imhist&amp;nbsp; where house not like 'X%' and trqty &amp;gt; 0 and (trndt between 1 and 2) and tcode = 'RP';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What you really should do is try running the SQL code directly in SQL to see if it works before you even put it into QV...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Mar 2014 16:29:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL/m-p/602542#M222729</guid>
      <dc:creator>Nicole-Smith</dc:creator>
      <dc:date>2014-03-20T16:29:45Z</dc:date>
    </item>
    <item>
      <title>Re: SQL '</title>
      <link>https://community.qlik.com/t5/QlikView/SQL/m-p/602543#M222730</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;this works, dbms is oracle&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OLEDB CONNECT32 TO [Provider=OraOLEDB.Oracle.1;Persist Security Info=False;User ID=xxxx;Data Source=xxxxx;Extended Properties=""] (XPassword is xxxxxxxxxxxxx);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let vSql = 'SELECT L.COD_LOG, L.DAT_INIZIO, L.DAT_FINE, L.DES_LOG&amp;nbsp; &lt;/P&gt;&lt;P&gt;FROM DWH_DL.U002_LOG L &lt;/P&gt;&lt;P&gt;WHERE COD_LOG like ' &amp;amp; chr(39) &amp;amp; '%FTP%' &amp;amp; chr(39);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table:&lt;/P&gt;&lt;P&gt;NoConcatenate&lt;/P&gt;&lt;P&gt;load *;&lt;/P&gt;&lt;P&gt;SQL &lt;/P&gt;&lt;P&gt;$(vSql)&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Mar 2014 17:23:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL/m-p/602543#M222730</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2014-03-20T17:23:45Z</dc:date>
    </item>
    <item>
      <title>Re: SQL '</title>
      <link>https://community.qlik.com/t5/QlikView/SQL/m-p/602544#M222731</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, that worked. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Mar 2014 17:39:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL/m-p/602544#M222731</guid>
      <dc:creator />
      <dc:date>2014-03-20T17:39:45Z</dc:date>
    </item>
  </channel>
</rss>

