<?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: Recursive query in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Recursive-query/m-p/723354#M1068552</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi - can you copy/paste your script into your post ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 05 Sep 2014 17:35:02 GMT</pubDate>
    <dc:creator>JonnyPoole</dc:creator>
    <dc:date>2014-09-05T17:35:02Z</dc:date>
    <item>
      <title>Recursive query</title>
      <link>https://community.qlik.com/t5/QlikView/Recursive-query/m-p/723353#M1068551</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P class="headline" style="padding: 0 10px; margin: 1.5em 0 0; font-weight: bolder; color: #595959; font-family: 'Courier New'; font-size: 15px; font-style: normal; text-align: start; text-indent: 0px;"&gt;I am running qlik sense desktop version and getting below error while running recursive query...&lt;/P&gt;&lt;P class="headline" style="padding: 0 10px; margin: 1.5em 0 0; font-weight: bolder; color: #595959; font-family: 'Courier New'; font-size: 15px; font-style: normal; text-align: start; text-indent: 0px;"&gt;&lt;/P&gt;&lt;P class="headline" style="padding: 0 10px; margin: 1.5em 0 0; font-weight: bolder; color: #595959; font-family: 'Courier New'; font-size: 15px; font-style: normal; text-align: start; text-indent: 0px;"&gt;Started loading data&lt;/P&gt;&lt;P style="padding: 0 10px; color: #595959; font-family: 'Courier New'; font-size: 15px; font-style: normal; font-weight: normal; text-align: start; text-indent: 0px;"&gt;Connecting to ODData&lt;/P&gt;&lt;P style="padding: 0 10px; color: #595959; font-family: 'Courier New'; font-size: 15px; font-style: normal; font-weight: normal; text-align: start; text-indent: 0px;"&gt;Connected&lt;/P&gt;&lt;P style="padding: 0 10px; color: #595959; font-family: 'Courier New'; font-size: 15px; font-style: normal; font-weight: normal; text-align: start; text-indent: 0px;"&gt;table_entity Lines fetched: 1,673&lt;/P&gt;&lt;P class="edc_error" style="padding: 0 10px; background-color: rgba(255, 38, 38, 0.2); color: #595959; font-family: 'Courier New'; font-size: 15px; font-style: normal; font-weight: normal; text-align: start; text-indent: 0px;"&gt;Unknown statement with [CTE] as (select ID,name,PARENT_ID,TYPE_........&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Sep 2014 17:04:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Recursive-query/m-p/723353#M1068551</guid>
      <dc:creator />
      <dc:date>2014-09-05T17:04:55Z</dc:date>
    </item>
    <item>
      <title>Re: Recursive query</title>
      <link>https://community.qlik.com/t5/QlikView/Recursive-query/m-p/723354#M1068552</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi - can you copy/paste your script into your post ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Sep 2014 17:35:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Recursive-query/m-p/723354#M1068552</guid>
      <dc:creator>JonnyPoole</dc:creator>
      <dc:date>2014-09-05T17:35:02Z</dc:date>
    </item>
    <item>
      <title>Re: Recursive query</title>
      <link>https://community.qlik.com/t5/QlikView/Recursive-query/m-p/723355#M1068553</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Johathan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here it is....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with [CTE] as (select ID,name,PARENT_ID,TYPE_ID as 'Type' from VPX_ENTITY c where c.[Parent_Id] ='xxx' union all select c.ID,c.NAME,c.PARENT_ID, c.TYPE_ID from [CTE]p, VPX_ENTITY c where c.[Parent_Id] = p.[Id] and c.[Parent_Id] &amp;lt;&amp;gt; c.[Id]) Select a.power_state as 'Status','DC01'as 'Datacenter', UPPER('" &amp;amp; (rowVal) &amp;amp; "') as Acronym, a.id as ID, f.NAME as HostName,a.IP_ADDRESS as 'IPAddress',c.GUEST_FULL_NAME as OS, a.NUM_VCPU as CPU,cast(a.MEM_SIZE_MB as integer) as 'Memory', sum(round((((cast(b.HARDWARE_DEVICE_CAPACITY_IN as float)/1024)/1024)),3)) as 'Storage'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; from vpx_vm a join vpx_virtual_disk b on a.id = b.vm_id,VPX_VM_CONFIG_INFO c, VPX_ENTITY f, [CTE] g where a.Is_template = 0 and c.ID = a.ID and &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; f.ID = a.ID and g.Type = '0' and g.ID = a.ID Group by a.DNS_NAME,a.IP_ADDRESS, a.NUM_VCPU,a.IP_ADDRESS, c.GUEST_FULL_NAME,f.NAME, a.MEM_SIZE_MB,a.power_state,a.id ORDER BY A.DNS_NAME&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Sep 2014 18:40:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Recursive-query/m-p/723355#M1068553</guid>
      <dc:creator />
      <dc:date>2014-09-05T18:40:54Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Recursive query</title>
      <link>https://community.qlik.com/t5/QlikView/Recursive-query/m-p/723356#M1068554</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 Vishal,&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;Are you using ODBC/OLEDB? I'm not sure if either of them support CTEs. I assume that you have tried to run the CTE from the Management Studio and it works fine. Is this right? I've always used Views to generate the data while using the ODBC/OLEDB drivers. Can you move this logic to Views/Stored Procs?&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;www.QlikShare.com&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 07 Sep 2014 09:08:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Recursive-query/m-p/723356#M1068554</guid>
      <dc:creator>IAMDV</dc:creator>
      <dc:date>2014-09-07T09:08:41Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Recursive query</title>
      <link>https://community.qlik.com/t5/QlikView/Recursive-query/m-p/723357#M1068555</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Deepak,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ok, that make sense, Thanks I will try and let you know the updates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Sep 2014 18:38:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Recursive-query/m-p/723357#M1068555</guid>
      <dc:creator />
      <dc:date>2014-09-12T18:38:56Z</dc:date>
    </item>
  </channel>
</rss>

