select s.id, c.code, e.mark from Students s, Courses c, Enrolments e where s.id = e.student and e.course = c.id;