First: Decide on the grain of the desired table
Second: Which attributes do we wish were there?
Validate: What can we assert after the transformation?
Aggregations:
EventSummary (student_id, course_id, event_count, total_duration, completion_rate, video_duration, reading_duration, last_activity)
Features:
StudentCourseFeatures (student_id, course_id, mark,
engagement_level, degree, entry_year, region, school, event_count,
total_duration, completion_rate, video_duration, reading_duration, last_activity)