Question: Which one of them registered the earliest?
SQL: SELECT student_id FROM student_course_attendance WHERE course_id  =  301 ORDER BY date_of_attendance LIMIT 1