What are the id of students who registered courses or attended courses?
select student_id from student_course_registrations union select student_id from student_course_attendance