<?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 How can we write this SQL query in edit script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-can-we-write-this-SQL-query-in-edit-script/m-p/1045359#M351468</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can we write this query in edit script. Attached is a pic.&lt;IMG alt="query.png" class="jive-image image-1" height="67" src="https://community.qlik.com/legacyfs/online/118959_query.png" style="height: 66.7484px; width: 739px;" width="739" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kiran Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 22 Mar 2016 13:17:27 GMT</pubDate>
    <dc:creator>kkkumar82</dc:creator>
    <dc:date>2016-03-22T13:17:27Z</dc:date>
    <item>
      <title>How can we write this SQL query in edit script</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-we-write-this-SQL-query-in-edit-script/m-p/1045359#M351468</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can we write this query in edit script. Attached is a pic.&lt;IMG alt="query.png" class="jive-image image-1" height="67" src="https://community.qlik.com/legacyfs/online/118959_query.png" style="height: 66.7484px; width: 739px;" width="739" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kiran Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Mar 2016 13:17:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-we-write-this-SQL-query-in-edit-script/m-p/1045359#M351468</guid>
      <dc:creator>kkkumar82</dc:creator>
      <dc:date>2016-03-22T13:17:27Z</dc:date>
    </item>
    <item>
      <title>Re: How can we write this SQL query in edit script</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-we-write-this-SQL-query-in-edit-script/m-p/1045360#M351469</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;am nt sure but chk below&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/message/843834"&gt;how to convert sql query to qlikview load statement&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/message/976323"&gt;Re: how to use SQL Query&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Mar 2016 13:20:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-we-write-this-SQL-query-in-edit-script/m-p/1045360#M351469</guid>
      <dc:creator>Chanty4u</dc:creator>
      <dc:date>2016-03-22T13:20:23Z</dc:date>
    </item>
    <item>
      <title>Re: How can we write this SQL query in edit script</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-we-write-this-SQL-query-in-edit-script/m-p/1045361#M351470</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure may be like this, tried to create pseudo script backward - &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;T1:&lt;/P&gt;&lt;P&gt;Load distinct mpn&lt;/P&gt;&lt;P&gt;from Manufacture&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;T2:&lt;/P&gt;&lt;P&gt;Load distinct lpn,mpn&lt;/P&gt;&lt;P&gt;from part_matching&lt;/P&gt;&lt;P&gt;Where exists (mpn);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;T3:&lt;/P&gt;&lt;P&gt;Load *&lt;/P&gt;&lt;P&gt;From &lt;SPAN style="font-size: 13.3333px;"&gt;part_matching&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Where exists(lpn)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Drop table T1,T2&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Mar 2016 13:30:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-we-write-this-SQL-query-in-edit-script/m-p/1045361#M351470</guid>
      <dc:creator>Digvijay_Singh</dc:creator>
      <dc:date>2016-03-22T13:30:57Z</dc:date>
    </item>
    <item>
      <title>Re: How can we write this SQL query in edit script</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-we-write-this-SQL-query-in-edit-script/m-p/1045362#M351471</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Or using joins:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table1:&lt;/P&gt;&lt;P&gt;Load distinct mpn from Manufacturer;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;inner join(Table1)&lt;/P&gt;&lt;P&gt;Load distinct mpn, lpn from xx_Part_Matching;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;inner join (Table1)&lt;/P&gt;&lt;P&gt;Load lpn, field 1, field 2 etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;from yy_Part_Matching;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Mar 2016 13:37:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-we-write-this-SQL-query-in-edit-script/m-p/1045362#M351471</guid>
      <dc:creator>juleshartley</dc:creator>
      <dc:date>2016-03-22T13:37:36Z</dc:date>
    </item>
    <item>
      <title>Re: How can we write this SQL query in edit script</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-we-write-this-SQL-query-in-edit-script/m-p/1045363#M351472</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why do you want to write this query in edit script? I would create a SQL View with this query and in Qlikview only select * from View.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Mar 2016 13:38:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-we-write-this-SQL-query-in-edit-script/m-p/1045363#M351472</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-03-22T13:38:18Z</dc:date>
    </item>
    <item>
      <title>Re: How can we write this SQL query in edit script</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-we-write-this-SQL-query-in-edit-script/m-p/1045364#M351473</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't have a chance to create a view here, but I will try to create it. Just curious will the above two suggestions one with resident loads and another one with joins give the same result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Kiran Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Mar 2016 15:10:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-we-write-this-SQL-query-in-edit-script/m-p/1045364#M351473</guid>
      <dc:creator>kkkumar82</dc:creator>
      <dc:date>2016-03-22T15:10:21Z</dc:date>
    </item>
    <item>
      <title>Re: How can we write this SQL query in edit script</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-we-write-this-SQL-query-in-edit-script/m-p/1045365#M351474</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You don't need to create a view. You can use exactly the same SQL in the SQL part of the load script:&lt;/P&gt;&lt;P&gt;&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&gt; select * from xxxx_part_matching where lpn in ( &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; select distinct lpn from yyyy_part_matching where mpn in (&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; select distinct mpn from manufacturer_part_number&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This might be the fastest and most efficient solution for you. Since you will filter out unnecessary data at the earliest possible stage ...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Mar 2016 15:23:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-we-write-this-SQL-query-in-edit-script/m-p/1045365#M351474</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2016-03-22T15:23:21Z</dc:date>
    </item>
    <item>
      <title>Re: How can we write this SQL query in edit script</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-we-write-this-SQL-query-in-edit-script/m-p/1045366#M351475</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Petter,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I observed that the both tables are from different databases , so, it is possible to do the same using the above query by putting the database names before the tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope you got my point.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Kiran Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Mar 2016 16:18:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-we-write-this-SQL-query-in-edit-script/m-p/1045366#M351475</guid>
      <dc:creator>kkkumar82</dc:creator>
      <dc:date>2016-03-22T16:18:45Z</dc:date>
    </item>
    <item>
      <title>Re: How can we write this SQL query in edit script</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-we-write-this-SQL-query-in-edit-script/m-p/1045367#M351476</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;All, &lt;/P&gt;&lt;P&gt;I got the thing what I want, thanks petter I changed the query by including the database names before the tables .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Kiran Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Mar 2016 16:30:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-we-write-this-SQL-query-in-edit-script/m-p/1045367#M351476</guid>
      <dc:creator>kkkumar82</dc:creator>
      <dc:date>2016-03-22T16:30:05Z</dc:date>
    </item>
  </channel>
</rss>

