SELECT o.ad,o.soyad,o.tckimlik,c.cinsiyet FROM ogrenciler o LEFT OUTER JOIN cinsiyet c ON (o.cinsiyet_id=c.cinsiyet_id)