What are the ids of the students who either registered or attended a course?
select student_id from student_course_registrations union select student_id from student_course_attendance