College Data Management System Project
College Data Management System Project
College Data Management System Project
Submitted on - 08/07/2021
INDEX
1.Introduction
2.Project description
3.Objective
5.Queries
Introduction
The main objective of college management system is to easily carry out all functionalities of
a college or university. Using this system you can manage all college management work like
a fees submission, student personal information like phone number ,address and gender and
other details ,subject details ,department details,marks and attendance details . Using this
college management system you can view or update data and information about students and
faculty easily.
Project Description
This project is about creating a database about college data management. This has the
information about student like student id,name,phone number, address,gender,the admission
date ,academic year ,section they are studying in,cet marks/or any other valid marks for their
admission in the college.
This particular database also contains the information of faculty like faculty id ,faculty
name,gender,salary and personal information like phone number, address of the faculty.
We will also store the information regarding the departments in the college and the
information regarding fee structure and subjects .we will have department id,department
name and the hod id of the respective departments.
Regarding fee we will have the information of the hostel fee and tuition fee separately of each
student which is to be updated whenever the amount is paid by the particular student.
Regarding subjects we will have information of the subject id,subject name ,faculty id whose
is handling that particular subject ,we will also have department id to know which department
that particular subject belongs to.
Finally we will have information of marks of students ,for this we will collect the information
like student id, marks in the particular subject and also the attendance in that particular
subject these things should be updated in the marks table .
Objective
➔ To reduce paperwork.
➔ Reduced operational time
➔ Increased accuracy and reliability
➔ Increased operational efficiency
➔ Data security
➔ New features can be added as per the requirements.
➔ Easy searching of student ,faculty information.
➔ Main goal of this system is to automate the process carried out
in the organisation.
➔ Storing and retrieving of information is easy.
Code & Executed Output :
use College_Database;
create table departments(id int not null,name varchar(30) not null,hod_id int(10) default null);
ALTER TABLE departments ADD PRIMARY KEY (id);
CREATE TABLE students ( roll_num int NOT NULL, first_name varchar(25) NOT NULL,
last_name varchar(25) NOT NULL, gender char, address varchar(50), department_id int
NOT NULL, academic_year int,section char NOT NULL, phone varchar(10) NOT NULL,
admission_date date NOT NULL, cet_marks int NOT NULL);
ALTER TABLE students ADD PRIMARY KEY (roll_num);
ALTER TABLE students FOREIGN KEY (department_id) REFERENCES departments (id);
CREATE TABLE subjects (id int NOT NULL, department_id int NOT NULL, name
varchar(50) NOT NULL,faculty_id int NOT NULL);
ALTER TABLE subjects ADD PRIMARY KEY (id);
ALTER TABLE subjects ADD FOREIGN KEY (department_id) REFERENCES
departments (id);
ALTER TABLE subjects ADD FOREIGN KEY (faculty_id) REFERENCES faculty (id);
CREATE TABLE marks (student_roll_num int NOT NULL, subject_id int NOT NULL,
marks int NOT NULL check(marks<=100), attendance int check(attendance<=100));
ALTER TABLE marks ADD PRIMARY KEY (student_roll_num,subject_id);
ALTER TABLE subjects ADD FOREIGN KEY (department_id) REFERENCES
departments (id);
ALTER TABLE subjects ADD FOREIGN KEY (faculty_id) REFERENCES faculty (id);
show tables;
desc departments;
desc faculty;
desc students;
desc subjects;
desc marks;
desc fees;
3. List all the students whose CET marks is greater than or equal to 100.
6. Create a view of student id, student name,subject id he is studying with marks and
attendance.