<?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 query to equivalent script in QlikView in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Convert-sql-query-to-equivalent-script-in-QlikView/m-p/378045#M573045</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;Hi Ranjith,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;You don't need to convert this script into QlikView syntax. You can directly create OLEDB connection and you can use your T-SQL Queries.Although QlikView doesn't understand T-SQL statment but your OLEDB connection understands the T-SQL statements. So you can run your queries and OLEDB connection retrieves the data from DB and then QlikView will load the data in to the memory.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;Please add the word "SQL" as prefix before the "Select" word. I hope this makes sense and let me know if you neeed futher help. Something like this...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;OLEDB CONNECT TO [Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False; ..................................]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif; color: #000080;"&gt;SQL Select &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif; color: #000080;"&gt;ROUND(SomeNumberColumn/1000000, 1) as 'Number in millions', &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif; color: #000080;"&gt;NULLIF(COUNT(SomeNumberColumn/1000000),0) as Frequency &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif; color: #000080;"&gt;from v_myView &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif; color: #000080;"&gt;where TradeDate between @startdate and @enddate &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif; color: #000080;"&gt;GROUP BY ROUND(SomeNumberColumn/1000000, 1) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif; color: #000080;"&gt;HAVING COUNT(SomeNumberColumn/1000000) &amp;lt;&amp;gt; 0 &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif; color: #000080;"&gt;ORDER BY ROUND(SomeNumberColumn/1000000, 1);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif; color: #000080;"&gt;&lt;SPAN style="color: #800000;"&gt;Just change the @startdate and @enddate variables and also do you really need ORDER BY clause? This will force SQL Server Engine to perform table scan instead of any potential seeks.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;Good luck!&lt;/SPAN&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;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;&lt;A href="http://QlikShare.com"&gt;&lt;BR /&gt;&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;&lt;A href="http://QlikShare.com"&gt;www.QlikShare.com&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Aug 2012 07:08:48 GMT</pubDate>
    <dc:creator>IAMDV</dc:creator>
    <dc:date>2012-08-15T07:08:48Z</dc:date>
    <item>
      <title>Convert sql query to equivalent script in QlikView</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-sql-query-to-equivalent-script-in-QlikView/m-p/378044#M573044</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm migrating an application in WPF to QlikView. So far it has been a smooth process except migrating a histogram. Currently we use sql queries to generate the points for the histogram. The query used looks like the one below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select ROUND(SomeNumberColumn/1000000, 1) as 'Number in millions', NULLIF(COUNT(SomeNumberColumn/1000000),0) as Frequency from v_myView where TradeDate between @startdate and @enddate GROUP BY ROUND(SomeNumberColumn/1000000, 1) HAVING COUNT(SomeNumberColumn/1000000) &amp;lt;&amp;gt; 0 ORDER BY ROUND(SomeNumberColumn/1000000, 1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note.&lt;/P&gt;&lt;P&gt;1. I have already loaded all the data in QlikView from the view named v_myView from the database (At load)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I do not want to make another query to the same view to generate the histogram values. I want to get it done at the QlikView script level. Can somebody convert the above sql to qlikview script?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ranjith&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Aug 2012 06:52:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-sql-query-to-equivalent-script-in-QlikView/m-p/378044#M573044</guid>
      <dc:creator />
      <dc:date>2012-08-15T06:52:05Z</dc:date>
    </item>
    <item>
      <title>Re: Convert sql query to equivalent script in QlikView</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-sql-query-to-equivalent-script-in-QlikView/m-p/378045#M573045</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;Hi Ranjith,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;You don't need to convert this script into QlikView syntax. You can directly create OLEDB connection and you can use your T-SQL Queries.Although QlikView doesn't understand T-SQL statment but your OLEDB connection understands the T-SQL statements. So you can run your queries and OLEDB connection retrieves the data from DB and then QlikView will load the data in to the memory.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;Please add the word "SQL" as prefix before the "Select" word. I hope this makes sense and let me know if you neeed futher help. Something like this...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;OLEDB CONNECT TO [Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False; ..................................]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif; color: #000080;"&gt;SQL Select &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif; color: #000080;"&gt;ROUND(SomeNumberColumn/1000000, 1) as 'Number in millions', &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif; color: #000080;"&gt;NULLIF(COUNT(SomeNumberColumn/1000000),0) as Frequency &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif; color: #000080;"&gt;from v_myView &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif; color: #000080;"&gt;where TradeDate between @startdate and @enddate &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif; color: #000080;"&gt;GROUP BY ROUND(SomeNumberColumn/1000000, 1) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif; color: #000080;"&gt;HAVING COUNT(SomeNumberColumn/1000000) &amp;lt;&amp;gt; 0 &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif; color: #000080;"&gt;ORDER BY ROUND(SomeNumberColumn/1000000, 1);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif; color: #000080;"&gt;&lt;SPAN style="color: #800000;"&gt;Just change the @startdate and @enddate variables and also do you really need ORDER BY clause? This will force SQL Server Engine to perform table scan instead of any potential seeks.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;Good luck!&lt;/SPAN&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;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;&lt;A href="http://QlikShare.com"&gt;&lt;BR /&gt;&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;&lt;A href="http://QlikShare.com"&gt;www.QlikShare.com&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Aug 2012 07:08:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-sql-query-to-equivalent-script-in-QlikView/m-p/378045#M573045</guid>
      <dc:creator>IAMDV</dc:creator>
      <dc:date>2012-08-15T07:08:48Z</dc:date>
    </item>
    <item>
      <title>Re: Convert sql query to equivalent script in QlikView</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-sql-query-to-equivalent-script-in-QlikView/m-p/378046#M573046</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Deepak,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the reply. As I mentioned, I already created an OLEDB connection and wrote a SQL query to load all data from my view. Now, I do not want to make another SQL call to the db. Instead I want to make use of the already loaded data and generate the two new columns for the histogram. Not sure if I'm making sense but just in case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Ranjith&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Aug 2012 07:12:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-sql-query-to-equivalent-script-in-QlikView/m-p/378046#M573046</guid>
      <dc:creator />
      <dc:date>2012-08-15T07:12:33Z</dc:date>
    </item>
    <item>
      <title>Re: Convert sql query to equivalent script in QlikView</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-sql-query-to-equivalent-script-in-QlikView/m-p/378047#M573047</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;Ah! gotcha. Sorry I didn't read that properly...my bad!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;So you wanted to perform transformations in QlikView because you already loaded the data once. This makes sense and you need something like this...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif; color: #800000;"&gt;//Step 1: Using Resident Load we are loading the data from your View which is already in the Memory&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif; color: #800000;"&gt;NoConcatenate&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif; color: #800000;"&gt;v_myView2:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif; color: #800000;"&gt;Load&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif; color: #800000;"&gt;ROUND(SomeNumberColumn/1000000, 1) as 'Number in millions',&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif; color: #800000;"&gt;COUNT(SomeNumberColumn/1000000) as SomeNumberColumnCount,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif; color: #800000;"&gt;IF(IsNull(COUNT(SomeNumberColumn/1000000)) = -1,0, COUNT(SomeNumberColumn/1000000)) as Frequency&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif; color: #800000;"&gt;Resident v_myView&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif; color: #800000;"&gt;where TradeDate &amp;gt;= $(startdate) and TradeDate &amp;lt;= $(startdate);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif; color: #000080;"&gt;//Step 2b: We are using preceeding load to replicate the Having Clause. So we are first using the Group BY clause and then restricting the grouped data set.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif; color: #000080;"&gt;NoConcatenate&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif; color: #000080;"&gt;Final_v_myView:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif; color: #000080;"&gt;LOAD *&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif; color: #000080;"&gt;where SomeNumberColumnCount &amp;lt;&amp;gt; 0;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif; color: #000080;"&gt;//Step 2a: We are using Group BY clause&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif; color: #000080;"&gt;LOAD &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif; color: #000080;"&gt;[Number in millions],&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif; color: #000080;"&gt;SomeNumberColumnCount,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif; color: #000080;"&gt;Frequency&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif; color: #000080;"&gt;Resident &lt;/SPAN&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif; color: #800000;"&gt;v_myView2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif; color: #000080;"&gt;GROUP BY [Number in millions];&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif; color: #800000;"&gt;//Step 3:Droping the Temp table from QlikView&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif; color: #800000;"&gt;Drop Table v_myView2;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;There might be syntax errors but this is the logic and I hope it makes sense!&lt;/SPAN&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;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;&lt;A href="http://QlikShare.com"&gt;www.QlikShare.com&lt;/A&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Aug 2012 07:33:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-sql-query-to-equivalent-script-in-QlikView/m-p/378047#M573047</guid>
      <dc:creator>IAMDV</dc:creator>
      <dc:date>2012-08-15T07:33:22Z</dc:date>
    </item>
    <item>
      <title>Re: Convert sql query to equivalent script in QlikView</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-sql-query-to-equivalent-script-in-QlikView/m-p/378048#M573048</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is exaclty what I wanted. Thanks DV. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But now, when I execute the above script I get an error saying "Invalid expression" for "Step 1 query". Any idea what I might be missing?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Ranjith&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Aug 2012 08:07:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-sql-query-to-equivalent-script-in-QlikView/m-p/378048#M573048</guid>
      <dc:creator />
      <dc:date>2012-08-15T08:07:54Z</dc:date>
    </item>
    <item>
      <title>Re: Convert sql query to equivalent script in QlikView</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-sql-query-to-equivalent-script-in-QlikView/m-p/378049#M573049</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;You are welcome Ranjith.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;Like I said the above script was the direction for you to understand the logic/approach and I haven't tested the script and just wrote it as plain english. It will be good if you can post the sample QVW file? I can mock up an example for you.&lt;/SPAN&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;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;&lt;A class="jive-link-external-small" href="http://QlikShare.com"&gt;www.QlikShare.com&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Aug 2012 08:18:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-sql-query-to-equivalent-script-in-QlikView/m-p/378049#M573049</guid>
      <dc:creator>IAMDV</dc:creator>
      <dc:date>2012-08-15T08:18:18Z</dc:date>
    </item>
    <item>
      <title>Re: Convert sql query to equivalent script in QlikView</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-sql-query-to-equivalent-script-in-QlikView/m-p/378050#M573050</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi DV,&lt;/P&gt;&lt;P&gt;I have attached the qvw.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Aug 2012 08:23:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-sql-query-to-equivalent-script-in-QlikView/m-p/378050#M573050</guid>
      <dc:creator />
      <dc:date>2012-08-15T08:23:47Z</dc:date>
    </item>
    <item>
      <title>Re: Convert sql query to equivalent script in QlikView</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-sql-query-to-equivalent-script-in-QlikView/m-p/378051#M573051</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;Ranjith,&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;I'll get back to you soon.&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;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;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;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>Wed, 15 Aug 2012 13:09:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-sql-query-to-equivalent-script-in-QlikView/m-p/378051#M573051</guid>
      <dc:creator>IAMDV</dc:creator>
      <dc:date>2012-08-15T13:09:44Z</dc:date>
    </item>
    <item>
      <title>Re: Convert sql query to equivalent script in QlikView</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-sql-query-to-equivalent-script-in-QlikView/m-p/378052#M573052</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;Ranjith,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;Have you got this working? Sorry I was busy all week. Let me know if you need help.&lt;/SPAN&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;A href="http://QlikShare.com"&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;www.QlikShare.com&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 18 Aug 2012 16:50:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-sql-query-to-equivalent-script-in-QlikView/m-p/378052#M573052</guid>
      <dc:creator>IAMDV</dc:creator>
      <dc:date>2012-08-18T16:50:04Z</dc:date>
    </item>
    <item>
      <title>Re: Convert sql query to equivalent script in QlikView</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-sql-query-to-equivalent-script-in-QlikView/m-p/378053#M573053</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi DV,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, I got it working. Thanks for the help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;RC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Aug 2012 02:51:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-sql-query-to-equivalent-script-in-QlikView/m-p/378053#M573053</guid>
      <dc:creator />
      <dc:date>2012-08-23T02:51:54Z</dc:date>
    </item>
    <item>
      <title>Re: Convert sql query to equivalent script in QlikView</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-sql-query-to-equivalent-script-in-QlikView/m-p/378054#M573054</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;RC,&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;That's great! Please post ur answer and mark the thread to "answered". It helps other users while searching.&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;Thanks,&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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Aug 2012 10:25:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-sql-query-to-equivalent-script-in-QlikView/m-p/378054#M573054</guid>
      <dc:creator>IAMDV</dc:creator>
      <dc:date>2012-08-23T10:25:21Z</dc:date>
    </item>
    <item>
      <title>Re: Convert sql query to equivalent script in QlikView</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-sql-query-to-equivalent-script-in-QlikView/m-p/378055#M573055</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is the link to the answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/message/249313#249313"&gt;http://community.qlik.com/message/249313#249313&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;RC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Aug 2012 03:57:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-sql-query-to-equivalent-script-in-QlikView/m-p/378055#M573055</guid>
      <dc:creator />
      <dc:date>2012-08-27T03:57:41Z</dc:date>
    </item>
  </channel>
</rss>

