Hacker News new | ask | show | jobs
by netghost 3013 days ago
Your best solution would probably be to use a recursive CTE if your DB supported it, but as a sibling post mentioned, it's probably not a good approach.