Key Education Fields
Overview
Education analysis depends on a set of key fields that connect data across tables and help track students, courses, and administrative processes.
- student_id β identifies each student in the students table and links to enrollments, attendance, advising, and tuition records.
- program_id β identifies academic programs and connects students to their program of study.
- course_id β identifies courses and links them to sections and departments.
- section_id βidentifies specific course offerings and connects courses, instructors, and enrollments.
- term_id βidentifies academic terms and allows analysis across semesters or academic years.
- instructor_id β identifies faculty members and links them to teaching assignments and sections.
- payment_status β describes whether tuition is paid, partially paid, or outstanding.
- enrollment_status β shows whether a student is enrolled, withdrawn, or completed a course.
These fields are essential because they allow you to track student progression, course delivery, teaching assignments, and financial activity across the institution.
The Basic Pattern
SELECT column_name, COUNT(*) AS total
FROM table_name
GROUP BY column_name;
Examples
Example 1 β Count Students by Program
Example 2 β Count Sections by Term
Example 3 β Count Enrollments by Status
Practice Tasks (Your Turn!)
Task 1
Count the number of payments by payment status.
Task 2
Count the number of instructors by department.
Task 3
Count the number of enrollments by section.
Select a Task
Click a task from Practice Tasks to begin.
Click a task from Practice Tasks to begin.
Results will appear here…

