There are two SQL tables:
Parents: +--+---------+ |id| text | +--+---------+ | 1| Blah | | 2| Blah2 | | 3| Blah3 | +--+---------+ Childs +--+-----
This should work:
SELECT p.id, p.text, c.id, c.parent,c.feature FROM parent p LEFT OUTER JOIN (SELECT TOP 1 child.id, child.parent, MAX(child.feature) FROM child WHERE child.parent = p.id GROUP BY child.id, child.parent ) c ON p.id = c.parent