<?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 SQL QUERY to QLIKVIEW in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/SQL-QUERY-to-QLIKVIEW/m-p/742544#M265118</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Hi,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;I want to convert the sql query to QlikView Script. Below are the mentioned query. Also if it possible to convert into VB macro, it is also helpful for me to execute it by QV macro.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;DECLARE @LLNO BIGINT;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;DECLARE @LLBK BIGINT&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;SET @LLNO = 1;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;WHILE&amp;nbsp; @LLNO&amp;lt;=100&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;BEGIN&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;SET @LLBK =(SELECT DISTINCT LOID FROM [dbCertifiedInventory_Live].[dbo].QLIKVIEW_LOTID_IDENTITY WHERE SR_NO =@LLNO)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;exec [dbo].[SP_QLIKVIEW_SINGLE_LOT_INSERT] @LLBK,'','','0','0','0','01-Mar-2013','31-Dec-2014',''&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;print 'success';&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;SET @LLNO = (@LLNO+1);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;end;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Amit Kumar&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 16 Dec 2014 05:38:03 GMT</pubDate>
    <dc:creator>sona_sa</dc:creator>
    <dc:date>2014-12-16T05:38:03Z</dc:date>
    <item>
      <title>SQL QUERY to QLIKVIEW</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-QUERY-to-QLIKVIEW/m-p/742544#M265118</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Hi,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;I want to convert the sql query to QlikView Script. Below are the mentioned query. Also if it possible to convert into VB macro, it is also helpful for me to execute it by QV macro.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;DECLARE @LLNO BIGINT;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;DECLARE @LLBK BIGINT&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;SET @LLNO = 1;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;WHILE&amp;nbsp; @LLNO&amp;lt;=100&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;BEGIN&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;SET @LLBK =(SELECT DISTINCT LOID FROM [dbCertifiedInventory_Live].[dbo].QLIKVIEW_LOTID_IDENTITY WHERE SR_NO =@LLNO)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;exec [dbo].[SP_QLIKVIEW_SINGLE_LOT_INSERT] @LLBK,'','','0','0','0','01-Mar-2013','31-Dec-2014',''&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;print 'success';&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;SET @LLNO = (@LLNO+1);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;end;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Amit Kumar&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Dec 2014 05:38:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-QUERY-to-QLIKVIEW/m-p/742544#M265118</guid>
      <dc:creator>sona_sa</dc:creator>
      <dc:date>2014-12-16T05:38:03Z</dc:date>
    </item>
    <item>
      <title>Re: SQL QUERY to QLIKVIEW</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-QUERY-to-QLIKVIEW/m-p/742545#M265119</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's not an sql query, but a block of code that appears to execute a loop that executes a stored procedure that inserts data into some table. This cannot be converted to Qlikview script. The best you can do is create a stored procedure that executes that block of code and call that stored procedure from the qlikview script: SQL EXEC [dbo].[MyNewSP];&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Dec 2014 13:36:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-QUERY-to-QLIKVIEW/m-p/742545#M265119</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2014-12-16T13:36:21Z</dc:date>
    </item>
  </channel>
</rss>

