Task: Text to Code
Input (English): Step 1: For each row in Student_Course_Registrations table, find the corresponding rows in Student_Course_Attendance table.
Step 2: find Student_Course_Attendance's student_id of the results of step 1 with largest value of registration_date
Output (English): SELECT T2.student_id FROM Student_Course_Registrations AS T1 JOIN Student_Course_Attendance AS T2 ON T1.course_id = T2.course_id ORDER BY T1.registration_date Desc LIMIT 1