What are the ids of the students who attended courses in the statistics department in order of attendance date.
select t2.student_id from courses as t1 join student_course_attendance as t2 on t1.course_id = t2.course_id where t1.course_name = "statistics" order by t2.date_of_attendance