I have a table
Id | Name | ParentId 1 | Parent | 0 2 | Subparent | 1 3 | Child | 2
What query to retrieve one