Building a Simple Student Grades Database
📖 Scenario: You are helping a school keep track of students and their grades in different subjects. This will help teachers quickly find out how students are doing.
🎯 Goal: Create a small database with tables for Students and Grades. Then, link the grades to the students using a common key. Finally, write a query to see each student's name with their grades.
📋 What You'll Learn
Create a
Students table with columns StudentID (integer), Name (text).Create a
Grades table with columns GradeID (integer), StudentID (integer), Subject (text), and Score (integer).Insert exactly three students with IDs 1, 2, 3 and names 'Alice', 'Bob', 'Charlie'.
Insert exactly five grades linking to the students by
StudentID.Write a query to join
Students and Grades on StudentID to show each student's name, subject, and score.💡 Why This Matters
🌍 Real World
Schools and educational institutions use databases like this to keep track of students and their grades efficiently.
💼 Career
Understanding relational models and SQL queries is essential for database administrators, data analysts, and backend developers.
Progress0 / 4 steps