1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11:
SELECT n.NameID, n.NAME NAME, n.age age, c, Cmments FROM Names n LEFT JOIN (SELECT NameID, COUNT(*) Comments FROM Comments GROUP BY n.NameID ) c ON n.NameID = n.NameID