Skip to main content
Announcements
Introducing a new Enhanced File Management feature in Qlik Cloud! GET THE DETAILS!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Creating a self join Hierarchy

Hi

Im trying to create a hiererachy on a table using the self join between the LocalServiceLineParent and LocalServiceLine.:

SELECT .LocalServiceLine, .LocalServiceLineDescription,

.LocalServiceLine + ' : ' + .LocalServiceLineDescription AS LocalServiceLineDescriptionWithCode,

               LocalServiceLineParent

FROM  LocalServiceLines

I have tried this in SQL but unfortunatley the results are not returining as expected.

Thanks

2 Replies
Not applicable
Author

what do you expect? and what you get? and where is self join?

Not applicable
Author

The parent is LocalServiceLineParent and the child is LocalServiceLine.  I need these two join to create a hierarchy.