Created
March 15, 2018 14:03
-
-
Save davutg/1a9675d904b415eb487595b238451538 to your computer and use it in GitHub Desktop.
Hierarchical query with Connect by
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT * | |
FROM tree t, item m | |
WHERE M.ID = RT.PARENTID | |
CONNECT BY PRIOR t.parentid = t.childid | |
START WITH t.chilid = 123456789 | |
ORDER BY T.PARENTID |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment