Here I need the tree structure query, with one int and other is varchar field. I don't want to modify varchar to int.
Table structure:
ID INT
SUB_TASK_ID INT
TASK_ID INT
PID INT
WBS_ID VARCHAR
WBS_TYPE VARCHAR
Here I'm trying to cast the wbs_id
SELECT *
from art_sub_task_allocation
START WITH sub_task_id IN (929)
CONNECT BY PRIOR CAST(wbs_id AS Numeric(10,0)) = sub_task_id;
But I get error :CONNECT BY loop in user data