<?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: Convert sql script into QV script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Convert-sql-script-into-QV-script/m-p/855860#M299991</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load *&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;from Sales.qvd(qvd)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where isnull(partno) and&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;not isnull(lineno) and&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;invoiceid=10000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;inner join&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;load partno as Partnofrom_b,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;invoiceid&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;orderno&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lineno&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;from Sales.qvd(qvd)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where not isnull(partno) and&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;not isnull(lineno);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 30 Jun 2015 18:30:41 GMT</pubDate>
    <dc:creator>Kushal_Chawda</dc:creator>
    <dc:date>2015-06-30T18:30:41Z</dc:date>
    <item>
      <title>Convert sql script into QV script</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-sql-script-into-QV-script/m-p/855854#M299985</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the following Self join SQL query. This query created on Sales table&amp;nbsp; I want to know how to write self join in QV scripts. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select a.*, b.partno from Sales a, Sales b&lt;/P&gt;&lt;P&gt;where&lt;/P&gt;&lt;P&gt;a.partno is NULL and b.partno is not NULL &lt;/P&gt;&lt;P&gt;and a.lineno is not NULL and b.lineno is not NULL&lt;/P&gt;&lt;P&gt;and a.invoiceid = 10000 and&lt;/P&gt;&lt;P&gt;a.invoiceid = b.invoiceid and&lt;/P&gt;&lt;P&gt;a.orderno = b.orderno and&lt;/P&gt;&lt;P&gt;a.lineno = b.lineno&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please help on this. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Ajay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jun 2015 18:04:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-sql-script-into-QV-script/m-p/855854#M299985</guid>
      <dc:creator>ajaykumar1</dc:creator>
      <dc:date>2015-06-30T18:04:45Z</dc:date>
    </item>
    <item>
      <title>Re: Convert sql script into QV script</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-sql-script-into-QV-script/m-p/855855#M299986</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;in this case I would leave everything to the database&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;load *;&lt;/P&gt;&lt;P&gt;sql&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;select a.*, b.partno from Sales a, Sales b&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;where&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;a.partno is NULL and b.partno is not NULL&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;and a.lineno is not NULL and b.lineno is not NULL&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;and a.invoiceid = 10000 and&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;a.invoiceid = b.invoiceid and&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;a.orderno = b.orderno and&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;a.lineno = b.lineno;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;is it an option?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jun 2015 18:16:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-sql-script-into-QV-script/m-p/855855#M299986</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2015-06-30T18:16:49Z</dc:date>
    </item>
    <item>
      <title>Re: Convert sql script into QV script</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-sql-script-into-QV-script/m-p/855856#M299987</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Massimo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What it means everything leaves to database?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is qv supports self join?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;More Thanks,&lt;/P&gt;&lt;P&gt;Ajay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jun 2015 18:19:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-sql-script-into-QV-script/m-p/855856#M299987</guid>
      <dc:creator>ajaykumar1</dc:creator>
      <dc:date>2015-06-30T18:19:33Z</dc:date>
    </item>
    <item>
      <title>Re: Convert sql script into QV script</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-sql-script-into-QV-script/m-p/855857#M299988</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;and this is my try in qlik (if you have a qvd of sales please post it)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;a:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;load *&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;where invoiceid=10000;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;sql select * from Sales;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;inner join (a)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;load *;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;sql select invoiceid, orderno, lineno, &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;partno as partnob, lineno as linenob from Sales;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;f:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;NoConcatenate&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;load * Resident a&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;where len(trim(partno))=0 and len(trim(partnob))&amp;gt;0&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;and len(trim(lineno))&amp;gt;0 and len(trim(linenob))=0;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;drop table a;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jun 2015 18:20:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-sql-script-into-QV-script/m-p/855857#M299988</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2015-06-30T18:20:13Z</dc:date>
    </item>
    <item>
      <title>Re: Convert sql script into QV script</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-sql-script-into-QV-script/m-p/855858#M299989</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the self join is made on database (bold, it's your sql script and the database runs it)&lt;/P&gt;&lt;P&gt;and qlik only load (load *, not bold) the result of self join from the database&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;load *;&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;sql&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;select a.*, b.partno from Sales a, Sales b&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;where&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;a.partno is NULL and b.partno is not NULL&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;and a.lineno is not NULL and b.lineno is not NULL&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;and a.invoiceid = 10000 and&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;a.invoiceid = b.invoiceid and&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;a.orderno = b.orderno and&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;a.lineno = b.lineno;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jun 2015 18:22:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-sql-script-into-QV-script/m-p/855858#M299989</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2015-06-30T18:22:41Z</dc:date>
    </item>
    <item>
      <title>Re: Convert sql script into QV script</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-sql-script-into-QV-script/m-p/855859#M299990</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will try this tmrw my offc timings and will be back with result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ajay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jun 2015 18:26:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-sql-script-into-QV-script/m-p/855859#M299990</guid>
      <dc:creator>ajaykumar1</dc:creator>
      <dc:date>2015-06-30T18:26:12Z</dc:date>
    </item>
    <item>
      <title>Re: Convert sql script into QV script</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-sql-script-into-QV-script/m-p/855860#M299991</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load *&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;from Sales.qvd(qvd)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where isnull(partno) and&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;not isnull(lineno) and&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;invoiceid=10000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;inner join&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;load partno as Partnofrom_b,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;invoiceid&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;orderno&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lineno&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;from Sales.qvd(qvd)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where not isnull(partno) and&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;not isnull(lineno);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jun 2015 18:30:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-sql-script-into-QV-script/m-p/855860#M299991</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2015-06-30T18:30:41Z</dc:date>
    </item>
    <item>
      <title>Re: Convert sql script into QV script</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-sql-script-into-QV-script/m-p/855861#M299992</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Kush,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will try this approach also and get back.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ajay.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jun 2015 18:33:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-sql-script-into-QV-script/m-p/855861#M299992</guid>
      <dc:creator>ajaykumar1</dc:creator>
      <dc:date>2015-06-30T18:33:46Z</dc:date>
    </item>
    <item>
      <title>Re: Convert sql script into QV script</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-sql-script-into-QV-script/m-p/855862#M299993</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Massimo. You saved my day and its working perfectly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;More Thanks,&lt;/P&gt;&lt;P&gt;Ajay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jul 2015 13:10:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-sql-script-into-QV-script/m-p/855862#M299993</guid>
      <dc:creator>ajaykumar1</dc:creator>
      <dc:date>2015-07-01T13:10:38Z</dc:date>
    </item>
  </channel>
</rss>

