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