select * from  ACCOUNT a left join
APPOINTMENT b on a.ACCOUNTID=b.STUDENTID
left join
APPOINTMENT c on a.ACCOUNTID=c.TUTORID