CREATE TABLE student_course_attendance (student_id VARCHAR)
CREATE TABLE student_course_registrations (student_id VARCHAR)

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
SELECT "student_id" FROM "student_course_registrations" UNION SELECT "student_id" FROM "student_course_attendance"