Let\'s say I have the following table:
CustomerID ParentID Name ========== ======== ==== 1 null John 2 1 James 3 2 J
Unless I'm missing something, recursion isn't necessary...
SELECT d.NAME FROM Customers As d INNER JOIN Customers As p ON p.CustomerID = d.ParentID WHERE p.Name = 'James'