Schema: CREATE TABLE student_course_attendance (student_id VARCHAR); CREATE TABLE student_course_registrations (student_id VARCHAR)
Question: What are the id of students who registered courses or attended courses?
SQL: SELECT student_id FROM student_course_registrations UNION SELECT student_id FROM student_course_attendance