From the Image I have same course id and multiple videos for i want to show the overall watched percentage as the average of them how can I do that I want something like this:
(SELECT SUM(watched_percentage) FROM tbl_student_learning_path where course_id = 298
AND SELECT COUNT(watched_percentage) FROM tbl_student_learning_path where course_id = 298)
as overallScore