<?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: How to implement sql query in Qlikview script . Need Help in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-implement-sql-query-in-Qlikview-script-Need-Help/m-p/25133#M787694</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I thing you should put 'SQL' prefix in your Query and reload &lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #ff0000;"&gt;SQL&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d;"&gt; select&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; distinct dealer.id as dealer,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; supplier.id as supplier,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dealer.name as dealername,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; supplier.name as suppliername,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Month(date_updated) as month,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; Year(date_updated) as year &lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;from VAF5.aux_institutionfspconfig ifspc&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;inner join VAF5.institution dealer on dealer.id = ifspc.institution2_id&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;inner join VAF5.institution supplier on supplier.id = ifspc.institution1_id&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;left join VAF5.deal deal on deal.institution_id = ifspc.institution1_id&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;#and&amp;nbsp; deal.dealgroup_id&amp;nbsp; in (select dealgrp.id from VAF5.dealgroup dealgrp)&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;and dealer.id&amp;nbsp; not in (select distinct dealgrp1.institution_id from VAF5.dealgroup dealgrp1 inner join&amp;nbsp; VAF5.deal deal1 on deal1.dealgroup_id = dealgrp1.id&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;where deal1.institution_id=16742 and deal1.date_updated between '2018-01-01' and '2018-01-31')&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;where supplier.id=16742&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;and date_updated between '2018-01-01' and '2018-01-31';&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 28 Feb 2018 12:55:52 GMT</pubDate>
    <dc:creator>veerendrakatika</dc:creator>
    <dc:date>2018-02-28T12:55:52Z</dc:date>
    <item>
      <title>How to implement sql query in Qlikview script . Need Help</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-implement-sql-query-in-Qlikview-script-Need-Help/m-p/25132#M787693</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;Please see my MySql Query .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; distinct dealer.id as dealer,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; supplier.id as supplier,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dealer.name as dealername,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; supplier.name as suppliername,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Month(date_updated) as month,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Year(date_updated) as year&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;from VAF5.aux_institutionfspconfig ifspc&lt;/P&gt;&lt;P&gt;inner join VAF5.institution dealer on dealer.id = ifspc.institution2_id&lt;/P&gt;&lt;P&gt;inner join VAF5.institution supplier on supplier.id = ifspc.institution1_id&lt;/P&gt;&lt;P&gt;left join VAF5.deal deal on deal.institution_id = ifspc.institution1_id&lt;/P&gt;&lt;P&gt;#and&amp;nbsp; deal.dealgroup_id&amp;nbsp; in (select dealgrp.id from VAF5.dealgroup dealgrp)&lt;/P&gt;&lt;P&gt;and dealer.id&amp;nbsp; not in (select distinct dealgrp1.institution_id from VAF5.dealgroup dealgrp1 inner join&amp;nbsp; VAF5.deal deal1 on deal1.dealgroup_id = dealgrp1.id&lt;/P&gt;&lt;P&gt;where deal1.institution_id=16742 and deal1.date_updated between '2018-01-01' and '2018-01-31')&lt;/P&gt;&lt;P&gt;where supplier.id=16742&lt;/P&gt;&lt;P&gt;and date_updated between '2018-01-01' and '2018-01-31';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to implement the query in Qlikview script but its not working .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My requirement is&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ProductListing - tempDealProductList should acheive the dealer id every period .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="194822" alt="Capture3.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/194822_Capture3.PNG" style="height: 215px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sample model attached.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-implement-sql-query-in-Qlikview-script-Need-Help/m-p/25132#M787693</guid>
      <dc:creator>ashmitp869</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to implement sql query in Qlikview script . Need Help</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-implement-sql-query-in-Qlikview-script-Need-Help/m-p/25133#M787694</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I thing you should put 'SQL' prefix in your Query and reload &lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #ff0000;"&gt;SQL&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d;"&gt; select&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; distinct dealer.id as dealer,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; supplier.id as supplier,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dealer.name as dealername,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; supplier.name as suppliername,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Month(date_updated) as month,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; Year(date_updated) as year &lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;from VAF5.aux_institutionfspconfig ifspc&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;inner join VAF5.institution dealer on dealer.id = ifspc.institution2_id&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;inner join VAF5.institution supplier on supplier.id = ifspc.institution1_id&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;left join VAF5.deal deal on deal.institution_id = ifspc.institution1_id&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;#and&amp;nbsp; deal.dealgroup_id&amp;nbsp; in (select dealgrp.id from VAF5.dealgroup dealgrp)&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;and dealer.id&amp;nbsp; not in (select distinct dealgrp1.institution_id from VAF5.dealgroup dealgrp1 inner join&amp;nbsp; VAF5.deal deal1 on deal1.dealgroup_id = dealgrp1.id&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;where deal1.institution_id=16742 and deal1.date_updated between '2018-01-01' and '2018-01-31')&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;where supplier.id=16742&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;and date_updated between '2018-01-01' and '2018-01-31';&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Feb 2018 12:55:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-implement-sql-query-in-Qlikview-script-Need-Help/m-p/25133#M787694</guid>
      <dc:creator>veerendrakatika</dc:creator>
      <dc:date>2018-02-28T12:55:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to implement sql query in Qlikview script . Need Help</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-implement-sql-query-in-Qlikview-script-Need-Help/m-p/25134#M787695</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes , I understand that but the problem is the deal table does not store history . I have to get the history from qvd and then concatenate it with live data. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So,I cannot directly query sql. Thus , I need to do it in qlikview script with the temp_table_deal from qvd.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Feb 2018 12:59:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-implement-sql-query-in-Qlikview-script-Need-Help/m-p/25134#M787695</guid>
      <dc:creator>ashmitp869</dc:creator>
      <dc:date>2018-02-28T12:59:17Z</dc:date>
    </item>
  </channel>
</rss>

