In this project, we analyze various factors, such as study hours, extracurricular activities, attendance, and tutoring sessions, to uncover actionable insights. The results will help inform students and educators on how to optimize academic performance.
- Analyze the impact of study hours combined with extracurricular activities on exam scores.
- Identify the optimal ranges of study hours for better academic performance.
- Rank students based on exam scores using window functions.
The project uses the student_performance table with the following columns:
- attendance - Percentage of classes attended (float)
- extracurricular_activities - Participation in extracurricular activities (Yes/No, varchar)
- sleep_hours - Average number of hours of sleep per night (float)
- tutoring_sessions - Number of tutoring sessions attended per month (integer)
- teacher_quality - Quality of the teachers (Low, Medium, High, varchar)
- exam_score - Final exam score (float)
Clone this repository and install the necessary libraries:
git clone https://github.com/JReaves10/StudentPerformance
cd StudentPerformance- Set up your SQL environment and ensure access to the student_performance table.
- Execute the SQL queries provided to generate the desired insights.
This query evaluates how studying more than 10 hours per week, combined with extracurricular involvement, impacts exam performance.
This query groups students into ranges based on study hours and calculates the average exam score for each group.
This query assigns ranks based on exam scores using a window function. Students with the same exam score share the same rank.
- Impact of Study Hours and Extracurricular Activities: Students who studied over 10 hours per week and participated in extracurricular activities tended to achieve higher exam scores.
- Sweet Spot for Study Hours: The best performance was observed among students studying between 11 and 15 hours per week.
- Student Rankings: The student_exam_ranking query provided an ordered view of top-performing students without revealing sensitive score details.
This project highlights key factors influencing student success, including the importance of balanced study hours and extracurricular involvement. By leveraging SQL analytics, educational institutions can better guide students toward achieving their academic potential.
- Language: SQL
- Concepts: Window Functions, Data Grouping, Statistical Analysis





