Skip to main content

QlikView App Dev

Discussion Board for collaboration related to QlikView App Development.

Announcements
Skip the ticket, Chat with Qlik Support instead for instant assistance.
cancel
Showing results for 
Search instead for 
Did you mean: 
wdchristensen
Specialist
Specialist

Recursive CTE - Equivalent in Qlik Sense

How can the recursive tsql code below be written in qlik?

https://blog.sqlauthority.com/2008/07/28/sql-server-simple-example-of-recursive-cte/

USE AdventureWorks
GO
WITH Emp_CTE AS (
SELECT EmployeeID, ContactID, LoginID, ManagerID, Title, BirthDate
FROM HumanResources.Employee
WHERE ManagerID IS NULL
UNION ALL
SELECT e.EmployeeID, e.ContactID, e.LoginID, e.ManagerID, e.Title, e.BirthDate
FROM HumanResources.Employee e
INNER JOIN Emp_CTE ecte ON ecte.EmployeeID = e.ManagerID
)
SELECT *
FROM Emp_CTE

GO

1 Solution

Accepted Solutions
petter
Partner - Champion III
Partner - Champion III

This might be interesting reading for you:

Hierarchies

View solution in original post

2 Replies
wdchristensen
Specialist
Specialist
Author

Bueller

Bueller

Bueller

Bueller... - YouTube

petter
Partner - Champion III
Partner - Champion III

This might be interesting reading for you:

Hierarchies