SELECT p.pId, p.Lname, p.Fname, i.pId, i.iId, i.fatherID, i.motherID, i.DateOfBirth, i.Address, (SELECT sp.Fname+' '+sp.Lname FROM Profile sp WHERE sp.pId=i.pId) AS child, (SELECT sp.Fname+' '+sp.Lname FROM Profile sp WHERE sp.pId=i.fatherID) AS father, (SELECT sp.Fname+' '+sp.Lname FROM Profile sp WHERE sp.pId=i.motherID) AS mother FROM Info i INNER JOIN Profile p ON p.pId=i.pId