This repository houses an SQL-based project for managing student databases. The system efficiently handles relationships between students, courses, enrollments, and grades, with a variety of SQL queries included for seamless data management.
- π Manage relationships between students, courses, enrollments, and grades
- π» Execution of multiple SQL queries for efficient data manipulation
- π Comprehensive project report with ER diagram, constraints, keys, relationships, and metadata
- SQL
- Relational Database Management System (RDBMS)
Student-Database-SQL/
βββ sql/
β βββ create_tables.sql
β βββ insert_data.sql
β βββ queries.sql
βββ resources/
β βββ Project_Report.pdf
βββ screenshots/
β βββ query_execution.png
βββ README.md
-
Clone the repository:
git clone https://github.com/Soumita-2018/Students-Database-SQL.git cd Student-Database-SQL -
Ensure that an RDBMS (e.g., MySQL, PostgreSQL) is installed and running on your machine.
-
Create the necessary database and run the SQL scripts in the
sqldirectory in the following order:create_tables.sqlinsert_data.sql
-
Open your preferred SQL client and connect to your database.
-
Execute the queries in the
queries.sqlfile to interact with the student database management system.
Here are some example SQL queries included in the project:
-
Display all students enrolled in a particular course:
SELECT s.student_id, s.student_name FROM students s JOIN enrollments e ON s.student_id = e.student_id WHERE e.course_id = 'COURSE_ID';
-
Calculate the average grade for a course:
SELECT course_id, AVG(grade) AS average_grade FROM enrollments WHERE course_id = 'COURSE_ID' GROUP BY course_id;
-
Other queries for retrieving and manipulating data related to students, courses, enrollments, and grades.
The ER Diagram, including constraints, keys, relationships, and metadata, is detailed in the project report (Project_Report.pdf) located in the resources directory.
Feel free to contribute to the project by forking the repository and submitting pull requests. For any issues or feature requests, please open an issue in the repository.
Happy Querying! π

