Skip to content

AbdulBasit409/sql-student-management

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Student Course Management

A simple SQL project I built to practice working with relational databases. It covers creating tables, inserting data and writing queries — from basic selects all the way to subqueries and aggregations.

What it covers

The database has three tables — students, courses and enrollments. Students can enroll in multiple courses and each enrollment has a grade attached to it.

Files

  • schema.sql — creates the three tables
  • data.sql — adds sample students, courses, and enrollments
  • queries.sql — 11 queries ranging from basic to advanced

Queries included

  • View all students and courses
  • Filter students by city
  • Find students who got an A grade
  • Count total number of students
  • Show each student with their enrolled course and grade
  • Count how many students are in each course
  • Find students who scored an A along with the course name
  • Find students enrolled in more than one course and count their A grades
  • Calculate the percentage of A grades per course
  • Find the best grade each student achieved using a subquery

How to run

You can paste the files in order into DB Fiddle and run them directly in the browser no installation needed.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors