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_Registrations's student_id of the results of step 1 ordered ascending by date_of_attendance
Output (English): SELECT T1.student_id FROM Student_Course_Registrations AS T1 JOIN Student_Course_Attendance AS T2 ON T1.course_id = T2.course_id ORDER BY T2.date_of_attendance Asc