if my data structure is like this
parentA
-------parentAA
--------------parentAAA
---------------------childA
if i can get \"childA.name\" . h
SQLite doesn't support recursive CTEs (or CTEs at all for that matter),
there is no WITH in SQLite. Since you don't know how deep it goes, you can't use the standard JOIN trick to fake the recursive CTE. You have to do it the hard way and implement the recursion in your client code: