Professional Documents
Culture Documents
Dbms Project PDF
Dbms Project PDF
Dbms Project PDF
Introduction
Project Overview:
The goal of this project is to create a database-driven time
table management system for a school or university. This
system will allow administrators to define courses,
instructors, students, and schedule classes.
Database Schema:
Create the database schema by defining tables for the
following entities:
-
Students
•
student_id (Primary Key)
•
student_name
•
student_email
•
student_address
•
student_pno
•
student_dob
•
student_age
-
Instructors
•
instructor_id (Primary Key)
•
instructor_name
•
instructor_email
•
instructor_address
•
instructor_salary
•
instructor_designation
- Courses
•
course_id (Primary Key)
•
course_name
•
course_duration
-
Classes
•
class_id (Primary Key)
•
course_id (Foreign Key referencing Courses)
•
instructor_id (Foreign Key referencing
Instructors)
•
room
•
start_time
•
end_time
•
day_of_week
ER Diagram
Students
Column Name Datatype Constraints
Instructors
instructor_id Int Primary Key
instructor_name varchar() NOT NULL
instructor_email varchar() NOT NULL
instructor_addres s varchar() NOT NULL
Courses
Classes
class_id Int Primary Key
course_id Int Foreign Key
instructor_id Int Foreign Key
room Int NOT NULL
start_time Time NOT NULL
end_time Time NOT NULL
day_of_week Int NOT NULL
SQL Queries
Creating tables
Insert Data
Insert a new student into the Students table
Retrive Data
Update Data
Update student information (e.g., email) based on student name.
Delete Data
Delete a student record.
Reports
Generate a report that lists all classes with their respective instructors.
Create a report showing the class schedule for a specific day and time.
Generate a report that lists all available time slots for classes.