What are the id of students who registered courses or attended courses?
create table student_course_attendance (student_id varchar, PRIMARY KEY (student_id)); create table student_course_registrations (student_id varchar, PRIMARY KEY (student_id))
select student_id from student_course_registrations union select student_id from student_course_attendance