connect by never ends
The below SQL never ends.. please help me to resolve this issue.
SELECT
PARAM_GROUP_ID
FROM TEST_PARAMETER_GROUP
WHERE TEST_INSTANCE_ID = 19548
CONNECT BY PRIOR PARAM_GROUP_ID = PARENT_PARAM_GROUP_ID
START WITH PARENT_PARAM_GROUP_ID = 1;
TEST_INSTANCE_ID PARAM_GROUP_ID PARAM_GROUP_NAME PARENT_PARAM_GROUP_ID
19548 | 1 | portGroup | |
19548 | 2 | cpriGroup | 1 |