REPORT NEW DBMS Cdms
REPORT NEW DBMS Cdms
REPORT NEW DBMS Cdms
BELAGAVI-590018
A PROJECT REPORT
ON
College Date Base Management System
BY
MILAN MOHAN N DARSHAN B R
(4SF20CS067) (4SF20CS027)
Ms. Vidya V V
Asst. Professor, Dept. of CS&E
CERTIFICATE
Darshan B R 4SF20CS027
Milan Mohan N 4SF20CS067
………………………… …………………………
Ms. Vidya V V Dr. Nagesh H R
Asst. Prof. Dept. of CS&E HOD, Dept. of CS&E
SCEM, Mangaluru SCEM, Mangaluru
1. ………………………….
2. ………………………….
ABSTRACT
A database management system (DBMS) refers to the technology for creating and managing
databases. DBMS is a software tool used to organize (create, retrieve, update and manage) data
in a database. The main aim of a DBMS is to supply away to store up and retrieve database
information that is both convenient and efficient.
College Database Management System (DBMS) is a computerized system that allows for the
storage, retrieval, and manipulation of data related to a college or university. It can include
information on students, faculty, staff, courses, grades, and other relevant data. The system can
be used to track student enrollment and progress, manage class schedules, and generate reports
and analytics. An effective DBMS can improve communication and organization within the
college and aid in decision making. The system can be accessed by authorized users through a
web interface or integrated into other college systems such as the student information system.
ACKNOWLEDGEMENT
It is with great satisfaction and euphoria that we are submitting the Mini Project Report on
“College Database Management System” We have completed it as a part of the V semester
DBMS Laboratory with Mini Project (18CSL58) of Bachelor of Engineering in Computer
Science & Engineering of Visvesvaraya Technological University, Belagavi.
We express our sincere gratitude to Dr. Nagesh H R, Head & Professor, Department of
Computer Science & Engineering for her invaluable support and guidance.
We sincerely thank Dr. Rajesha. S, Principal, Sahyadri College of Engineering & Management
and Dr. D. L. Prabhakara, Director, Sahyadri Educational Institutions, who have always been a
great source of inspiration.
Finally, yet importantly, we express our heartfelt thanks to our family & friends for their wishes
and encouragement throughout the work.
1. Introduction
2. Design
2.1. E-R diagram
3. Normalization
4. Implementation
5. Results
6. Conclusion
References
CHAPTER 1
1. INTRODUCTION
DBMS Stands for "Database Management System." In short, a DBMS is a database program.
Technically speaking, it is a software system that uses a standard method of cataloging,
retrieving, and running queries on data. The DBMS manages incoming data, organizes it, and
provides ways for the data to be modified or extracted by users or other programs.
A DBMS makes it possible for end users to create, read, update and delete data in a database.
The DBMS essentially serves as an interface between the database and end users or application
programs, ensuring that data is consistently organized and remains easily accessible.
DBMS include change management, performance monitoring/tuning and backup and recovery.
Many database management systems are also responsible for automated rollbacks, restarts and
recovery as well as the logging and auditing of activity. The DBMS can offer both logical and
physical data independence. That means it can protect users and applications from needing to
know where data is stored or having to be concerned about changes to the physical structure of
data (storage and hardware).
As long as programs use the application programming interface (API) for the database that is
provided by the DBMS, developers won't have to modify programs just because changes have
been made to the database. With relational DBMSs (RDBMSs), this API is SQL, a standard
programming.
College Database Management System (DBMS) is a computerized system that allows for the
storage, retrieval, and manipulation of data related to a college or university. It can include
information on students, faculty, staff, courses, grades, and other relevant data. The system can
be
used to track student enrollment and progress, manage class schedules, and generate reports and
analytics. An effective DBMS can improve communication and organization within the college
and aid in decision making. The system can be accessed by authorized users through a web
interface or integrated into other college systems such as the student information system.
A college database management system (DBMS) is a necessary tool for efficiently managing and
organizing the vast amounts of data generated by educational institutions. It allows for the
storage, retrieval, and manipulation of information on college,department,faculty,student,fee and
other relavent data.The system streamlines tasks such as student registration provides quick
access to information for authorized users, which improves communication and organization
within the college. With the growing complexity and volume of data, a DBMS has become an
essential tool for colleges and universities to operate effectively and efficiently.
A college database management system (DBMS) has a wide range of applications and
advantages in educational institutions. One of the primary application is student registration
which can be automated and streamlined by the use of a DBMS. This can greatly improve the
accuracy and efficiency of these processes, this can reduce the risk of errors and improves the
communication between students and faculty. One of the key advantage of a college DBMS is
it’s ability to store, retrieve and manage large amounts of data when needed, which can greatly
improve the decision making process. In summary, a college DBMS has a wide range of
applications and advantages in educational institutions.
1.5 IMPLEMENTATION
The College Database Management System is implemented using home page module,
registration/login module, store module, user access module, with insert, update, delete
operations. MySQL which holds the database and java for the front end which displays the
provided modules.
1.6 ORACLE
1.7 MY SQL
Administrator will manage all college, department, faculty, student, fee details.
Whenever an administrator enters the system it shows the basic sectors. Then he
will be able to manage registration, update & delete operation to all the tables of
particular sector. The total control is under the admin. MySQL server is used for
data operations like querying, registering modifying and storing the tables. Before
learning the commonly used queries, let us look into some of the advantages of
MySQL.
1.8 JAVA
1.9 NETBEANS
REQUIREMENT SPECIFICATION
3.1 ER-diagram
Attribute Relationship
Key Attribute
1. Mapping of regular entities:-This step involves mapping all the regular entity types to
tabular format by identifying their primary keys.
2. Mapping of 1:1 Relation:-In this step foreign keys are assigned using foreign key
approach. The primary key of the participating relation R or S is added as primary key to
second entity types by looking at the participating constraints.
3. Mapping of 1:N Relation:-Foreign key approach is used to add one sided primary key to
the n sided entity at foreign key.
4. Mapping of M:N Relation :-Here we use the cross reference approach where the
relationship is converted to a new relation within attributes on primary keys of both
participating relation.
5. Mapping of Weak Entity :-When mapping weak entity types along with other attributes
the partial key and primary key of parent entity together will form their primary key of
the new relation.
NORMALIZATION
CHAPTER 5
Implementation
connection = Connector.ConnectDB();
String user=rUserField.getText();
String pass=String.valueOf(rPassField.getPassword());
try {
String sql = "select username, password from studentregistration where
username='" + user + "'";
prp = connection.prepareStatement(sql);
result = prp.executeQuery();
result.next();
if (pass.equals(result.getString("password"))) {
Student_page Student=new Student_page(user);
Student.setVisible(true);
JOptionPane.showMessageDialog(null, "Login Succesful", "Welcome "
+ user, JOptionPane.INFORMATION_MESSAGE);
dispose();
username = user;
connection.close();
} else {
JOptionPane.showMessageDialog(null, "Login Failed", "Error",
JOptionPane.WARNING_MESSAGE);
}
} catch (HeadlessException | SQLException e) {
JOptionPane.showMessageDialog(null, "User or Password wrong.");
}
UPDATE
connection = Connector.ConnectDB();
String id=jTextField1.getText();
String select=(String)jComboBox1.getSelectedItem();
String input=(jTextField2.getText());
String sql;
sql= "update faculty set "+select+"='"+input+"' where fid='"+id+"'";
try{
prp = connection.prepareStatement(sql);
prp.execute();
defaultTableModel.getDataVector().removeAllElements();
defaultTableModel.fireTableDataChanged();
loadData();
}
catch(HeadlessException|SQLException e){
JOptionPane.showMessageDialog(null, e);
}
}
DELETING
String id = jTextField1.getText();
connection = Connector.ConnectDB();
String sql = "delete from faculty where fid = '"+id+"'";
try{
prp = connection.prepareStatement(sql);
prp.execute();
JOptionPane.showMessageDialog(null,"Succcessfully deleted");
defaultTableModel.getDataVector().removeAllElements();
defaultTableModel.fireTableDataChanged();
loadData();
connection.close();
}
catch(SQLException e){
JOptionPane.showMessageDialog(null,"Error occured"+ e);
}
}
INSERTING
connection = Connector.ConnectDB();
String sql = "insert into
faculty(joiningdate,fid,name,gender,qualification,age,department,phone,
email,experience,address,role) values(?,?,?,?,?,?,?,?,?,?,?,?)";
try{
prp = connection.prepareStatement(sql);
prp.setString(1,dDateField.getText());
prp.setString(2,dIdField.getText());
prp.setString(3,dNameField.getText());
prp.setString(4,(String)dGenderField.getSelectedItem());
prp.setString(5,dQualifaction.getText());
prp.setInt(6,Integer.parseInt(dAgeField.getText()));
prp.setString(7,(String)dDeptField.getSelectedItem());
prp.setString(8,dPhoneField.getText());
prp.setString(9,dEmailField.getText());
prp.setString(10,jTextField1.getText());
prp.setString(11,dAddressField.getText());
prp.setString(12,(String)role.getSelectedItem());
prp.execute();
Faculty_details f=new Faculty_details();
f.setVisible(true);
dispose();
JOptionPane.showMessageDialog(null,"Successfully Added");
}
catch(SQLException e){
JOptionPane.showMessageDialog(null,"Error occured");
}
}
5.4 Triggers
DELIMITER $$
CREATE TRIGGER phone_number_validation
BEFORE INSERT ON mytable
FOR EACH ROW
BEGIN
IF NEW.phone_number NOT REGEXP '^[0-9]{10}$' THEN
SIGNAL SQLSTATE '45000' SET MESSAGE_TEXT = 'Invalid phone
number';
END IF;
END$$
DELIMITER ;
CHAPTER 6
ABCD