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