Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
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.