I have a query and it works, by which I get the category subsets.
with cte as (Select nid from TB_Category where nid= 429 union ALL select ca.nid from cte ct