<?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 to QlikView Script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Convert-SQL-to-QlikView-Script/m-p/38343#M781029</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If the sql returns data..why cant you try preceding load..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Load *;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;&lt;STRONG&gt;sql&lt;/STRONG&gt; select count(1)&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;from [AAM].[dbo].metadata1 as a,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;[AAM].[dbo].metadata2 as b&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;where&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;a.asset_folder=b.asset_folder&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;and (a.o_type='doc1' or (a.o_type='doc2' and a.path not like '%/division/%'))&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;and (a.inactive_date='' or a.inactive_date is null or try_parse(a.inactive_date as date)&amp;gt; getutcdate());&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;-Siva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 02 Apr 2018 01:32:53 GMT</pubDate>
    <dc:creator>Siva_Sankar</dc:creator>
    <dc:date>2018-04-02T01:32:53Z</dc:date>
    <item>
      <title>Convert SQL to QlikView Script</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-SQL-to-QlikView-Script/m-p/38342#M781028</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please help me to convert this SQL query to QlikView script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select count(1)&lt;/P&gt;&lt;P&gt;from [AAM].[dbo].metadata1 as a,&lt;/P&gt;&lt;P&gt;[AAM].[dbo].metadata2 as b&lt;/P&gt;&lt;P&gt;where&lt;/P&gt;&lt;P&gt;a.asset_folder=b.asset_folder&lt;/P&gt;&lt;P&gt;and (a.o_type='doc1' or (a.o_type='doc2' and a.path not like '%/division/%'))&lt;/P&gt;&lt;P&gt;and (a.inactive_date='' or a.inactive_date is null or try_parse(a.inactive_date as date)&amp;gt; getutcdate())&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/Convert-SQL-to-QlikView-Script/m-p/38342#M781028</guid>
      <dc:creator>karan_kn</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Convert SQL to QlikView Script</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-SQL-to-QlikView-Script/m-p/38343#M781029</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If the sql returns data..why cant you try preceding load..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Load *;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;&lt;STRONG&gt;sql&lt;/STRONG&gt; select count(1)&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;from [AAM].[dbo].metadata1 as a,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;[AAM].[dbo].metadata2 as b&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;where&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;a.asset_folder=b.asset_folder&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;and (a.o_type='doc1' or (a.o_type='doc2' and a.path not like '%/division/%'))&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;and (a.inactive_date='' or a.inactive_date is null or try_parse(a.inactive_date as date)&amp;gt; getutcdate());&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;-Siva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Apr 2018 01:32:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-SQL-to-QlikView-Script/m-p/38343#M781029</guid>
      <dc:creator>Siva_Sankar</dc:creator>
      <dc:date>2018-04-02T01:32:53Z</dc:date>
    </item>
    <item>
      <title>Re: Convert SQL to QlikView Script</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-SQL-to-QlikView-Script/m-p/38344#M781030</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Something like below&lt;/P&gt;&lt;P&gt;a:&lt;/P&gt;&lt;P&gt;Load *&lt;/P&gt;&lt;P&gt;Resident metadata1&lt;/P&gt;&lt;P&gt;Where&lt;/P&gt;&lt;P&gt;Match(o_type,'doc1','doc2') and WildMatch(path,'*division*')=0&lt;/P&gt;&lt;P&gt;And (Len(Trim(inactive_date))=0 Or inactive_date&amp;gt;UTC())&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;inner join(a)&lt;/P&gt;&lt;P&gt;Load &lt;/P&gt;&lt;P&gt;asset_folder&lt;/P&gt;&lt;P&gt;Resident metadata2&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CountRecords:&lt;/P&gt;&lt;P&gt;Load Count(asset_folder) as Count&lt;/P&gt;&lt;P&gt;Resident a&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you want the count in a variable, try as below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let vCount=Peek('Count',0,'CountRecords');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Apr 2018 10:46:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-SQL-to-QlikView-Script/m-p/38344#M781030</guid>
      <dc:creator>sasiparupudi1</dc:creator>
      <dc:date>2018-04-03T10:46:04Z</dc:date>
    </item>
  </channel>
</rss>

