category_child_id category_parent_id 1 0 2 0 3 1 4 1 5 3 6 3 7 4 8 0 9 8 10 8 11 0 12 11 13 11 14 0 15 14 16 14 17 14 18 0 19 18 20 18 21 18 0 19
select B.category_child_id from category_xref A inner join category_xref B on A.category_child_id = B.category_parent_id where (A.category_parent_id = 1 or B.category_parent_id = 1)
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)