List the id of students who attended some courses?
SELECT student_id FROM student_course_attendance
attended some courses refers to EXISTS(SELECT 1 FROM student_course_attendance WHERE student_id = student.id);