<?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 SQL in QlikView script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/SQL-in-QlikView-script/m-p/376138#M1167449</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The more I work in QlikView the more I see that normal SQL is out of the question (a where statement for example ignores multiple "AND" statements)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was wondering, since I can't find this in the documentation, if something like charindex() can work (I'm not on a machine with QV on and need to answer to my manager). We'd like to change a specific string field based on a "dash", ie something like, left(field_name,charindex('-',field_name)) as field_name&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 08 Aug 2012 10:47:21 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-08-08T10:47:21Z</dc:date>
    <item>
      <title>SQL in QlikView script</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-in-QlikView-script/m-p/376138#M1167449</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The more I work in QlikView the more I see that normal SQL is out of the question (a where statement for example ignores multiple "AND" statements)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was wondering, since I can't find this in the documentation, if something like charindex() can work (I'm not on a machine with QV on and need to answer to my manager). We'd like to change a specific string field based on a "dash", ie something like, left(field_name,charindex('-',field_name)) as field_name&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Aug 2012 10:47:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-in-QlikView-script/m-p/376138#M1167449</guid>
      <dc:creator />
      <dc:date>2012-08-08T10:47:21Z</dc:date>
    </item>
    <item>
      <title>Re: SQL in QlikView script</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-in-QlikView-script/m-p/376139#M1167450</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333; font-size: 10pt;"&gt;Try like: &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333; font-size: 10pt;"&gt;ODBC&amp;nbsp; &lt;STRONG&gt;CONNECT Statement&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333; font-size: 10pt;"&gt;Table1: &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333; font-size: 10pt;"&gt;Load &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333; font-size: 10pt;"&gt; left(field_name,charindex('-',field_name)) as field_name,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333; font-size: 10pt;"&gt;Other_Field1,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333; font-size: 10pt;"&gt;Other_Field2;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333; font-size: 10pt;"&gt;SQL&amp;nbsp; SELECT &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333; font-size: 10pt;"&gt;Field_Name,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333; font-size: 10pt;"&gt;Other_Field1,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333; font-size: 10pt;"&gt;Other_Field2&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333; font-size: 10pt;"&gt;FROM (Statement)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Aug 2012 11:04:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-in-QlikView-script/m-p/376139#M1167450</guid>
      <dc:creator />
      <dc:date>2012-08-08T11:04:18Z</dc:date>
    </item>
    <item>
      <title>Re: SQL in QlikView script</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-in-QlikView-script/m-p/376140#M1167451</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;plrenviroserv wrote:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;(a where statement for example ignores multiple "AND" statements)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;Sorry, I'haven't fully understood but what do you mean in above statement? Please can you explain in-detail? You can use use "AND" statement witin Where clause.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;Cheers,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;DV&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;A href="http://www.QlikShare.com"&gt;www.QlikShare.com&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Aug 2012 12:34:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-in-QlikView-script/m-p/376140#M1167451</guid>
      <dc:creator>IAMDV</dc:creator>
      <dc:date>2012-08-09T12:34:36Z</dc:date>
    </item>
    <item>
      <title>Re: SQL in QlikView script</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-in-QlikView-script/m-p/376141#M1167452</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; The SQL used by Qlikview is standard, you can use IN, AND etc etc &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Aug 2012 12:37:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-in-QlikView-script/m-p/376141#M1167452</guid>
      <dc:creator />
      <dc:date>2012-08-09T12:37:03Z</dc:date>
    </item>
  </channel>
</rss>

