New Dbms Report
New Dbms Report
MICRO-PROJECT REPORT ON
By
1
CERTIFICATE
This is to certify that the Microproject entitled
in the partial fulfillment of the requirement for the Diploma in Computer Engineering
during the academic year 2023-2024 under my guidance.
2023-2024
2
ACKNOWLEDGEMENT
3
Vision and Mission of the Institution
Vision
To be a vibrant technical institute of global reputes contributing towards the needs of
industries & society.
Mission
M1. To develop competent diploma engineers suitable for contemporary industrial
environment.
M2. To inculcate socially accepted ethics & values among budding engineers.
M3. To nurture innovations and entrepreneurship.
M4. To produce engineers with psychomotor & cognitive skills committed to
lifelong learning.
Vision
Provide skilled professionals in Computer Engineering to contribute towards the advancement of
technology useful for society and the industrial environment.
Mission
M1. Impart need-based and value-based education by providing exposure to the latest tools
and technologies in the area of computer engineering to satisfy the stakeholders.
M2.
Upgrade and maintain facilities for quality technical education with continuous effort
for excellence in Computer Engineering.
M3. Train students with Computer Engineering knowledge to apply it in the general
disciplines of design, deployment of software, and integration of existing
technologies for E-governance and benefit of society.
M4. Provide a learning ambiance to enhance innovations, problem-solving skills,
leadership qualities, team spirit, and ethical responsibilities.
M5. Provide an academic environment and consultancy services to the industry and society
in the area of Computer Engineering.
4
INDEX
1 Title Page 1
2 Certificate 2
3 Acknowledgement 3
4 Vision and Mission of Institution and 4
Department
5 Index 5
6 Annexure I 6-7
Brief Introduction
Aims
Course Outcomes
Integrated
Action Plan
Actual Resources Used
7 Annexure II 8-13
Brief Introduction
Aims
Course Outcomes
Integrated
Actual Procedure
Followed
Actual Resources Used
Outputs of the
microproject
Skills Developed
Assessment
8 Database for Staff Management System 14-16
9 Conclusion 17
10 References 17
5
PART A
1. Brief Introduction:
In this Micro-project, we have written procedure and functions to perform operations such as
the record inserting, deleting, updating a MySQL database of a Staff Management System
developed using java swing technology. A procedure is a subprogram that do not return a
value directly; and mainly used to perform an action. Procedure is divided into declarative
part, executable part.
We have used tables like registeradmin, availstaff, students, etc. And then we have fired
queries based on the tables and the conditions specified. Then to carry out operations we
have fired select queries, as it adds, deletes and updates the data in the tables and in the
database. This microproject will give the reader a detailed idea about various DML, DDL
commands and the use of constraints. Their implementation in real world projects and how
to use a procedure or function to perform a specific operation.
4. Action Plan:
Sr. Code &Name of Team Members
Details of activity
no.
1 Researching and deciding the topic of 21CM011 – Dwij Chaudhari
the microproject. 21CM019 – Ayush Dhewale
Finalising the topic and deciding the 21CM011 – Dwij Chaudhari
2
contents it would include. 21CM019 – Ayush Dhewale
Planning and preparing the design of the 21CM011 – Dwij Chaudhari
3
project. 21CM019 – Ayush Dhewale
Deciding the technologies and 21CM011 – Dwij Chaudhari
4
frameworks which would be required. 21CM019 – Ayush Dhewale
5 Creating the database and various tables 21CM019 – Ayush Dhewale
for the project.
6 Writing DML queries through JDBC to 21CM011 – Dwij Chaudhari
perform operations on records in the
6
table.
Resolving the errors occurring while 21CM019 – Ayush Dhewale
7
performing DML operations.
Adding constraints to restrict 21CM011 – Dwij Chaudhari
8 Unauthorized Users can not modify or
perform operations on Database.
9 Final testing of Database and Java code 21CM011 – Dwij Chaudhari
and completing the project , preparing 21CM019 – Ayush Dhewale
reports and annexures.
1 INTERNET --
6 VS Code 64-bit
Although, we have developed some subject specific (related to topic) skills like:
• Designing Databases
• Database Connectivity
• SQL (Structured Query Language)
• Data Retrieval
• Modification of structures and records
PART - B
7
1. Brief Introduction
In this Micro-project, we have written procedure and functions to perform operations such as
the record inserting, deleting, updating a MySQL database of a Staff Management System
Software developed using java swing technology. A procedure is a subprogram that do not
return a value directly; and mainly used to perform an action. Procedure is divided into
declarative part, executable part.
We have used tables like registeradmin, availstaff, students, etc. And then we have fired
queries based on the tables and the conditions specified. Then to carry out operations we
have fired select queries, as it adds, deletes and updates the data in the tables and in the
database. This microproject will give the reader a detailed idea about various DML, DDL
commands and the use of constraints. Their implementation in real world projects and how
to use a procedure or function to perform a specific operation.
2. Aim of the Micro-Project
This Micro- Project aims at:
Design normalised Database
Design a normalised database on Blood Bank Management Website
Create and manage Database using SQL commands
8
9. Perform Final testing of Database and Java code. 16/10/2023 20/10/2023
Gathering information about the points mentioned in
10.. 21/10/2023 25/10/2023
the project report.
11. Prepare the project report. 26/10/2023 01/11/2023
1 INTERNET --
In the above snapshot we use DML command i.e INSERT to insert the above fields data into
table name registeradmin.
Query : INSERT into registeradmin values
(‘Travis’,8956237845,’[email protected]’,’male’,’12- 03-1989’,’Travis
Smith’,’Tra123@smith’);
9
In the above snapshot we use DML command i.e SELECT to verify that whether username
and password of Admin will exits in table.
Query : SELECT username, password from registeradmin where password = ?;
In the above snapshot we use DML command i.e SELECT and WHERE clause to verify that
whether username and password of Staff will exits in table.
Query : SELECT username, password from availstaff where password = ?;
In the above snapshot we use DML command i.e INSERT to insert the above fields data into
the table name availstaff.
Query : INSERT into avaistaff values (‘Rahul’,8955237845,’[email protected]’,’male’,’12- 03-
1990’,’Rahul Murli,’ra123@smith’);
10
In the above snapshot we use DML command i.e SELECT and WHERE clause to verify that
whether staff record exits in table.
Query : SELECT ID, FULLNAME, MOBNO, ADDRESS, PINCODE, REG_DATE,
GENDER, SALARY, QUALIFICATION, FROM availstaff where adminname = ?;
In the above snapshot we use DML command i.e UPDATE with WHERE clause to update the
details of Admin.
Query : UPDATE registeradmin set fullname=?, mobno=?, emailid=?, gender=?, dob=?,
uname=?, upass=?, img=? where uname = ?";
In the above snapshot we use DML command i.e INSERT for entry of newly created classes .
Query : INSERT into classes values(?, ?);
11
In the above snapshot we use DML command i.e DELETE with WHERE clause to DELETE
the Student from students table with given specified Student ID .
Query : DELETE from students where id = ?;
In the above snapshot we use DML command i.e UPDATE with WHERE clause to update the
details of Students.
Query : UPDATE students set STUDENT_NAME = ?, MOBILE_NUMBER = ?, EMAIL
= ?, ADDRESS = ?, GENDER = ?, BLOOD_GROUP = ?, RELIGION = ?, CASTE = ? where
ID = ?;
12
7. Outputs of the Micro-Projects
13
DESIGN AND NORMALIZE DATABASE FOR STAFF MANAGEMENT SYSTEM
1. Database Creation:
staffmanagement Database:
--creating database
Create database staffmanagement;
Use database staffmanagement;
Description:
staffmanagement database contains various tables such as registeradmin, availstaff, classes,
students to store data| information of Admins, Staffs and Students .
2. Tables Creation:
2.1) Register Admin Table:
-- store info of admins
create table registeradmin
(
fullname varchar(30) not null,
mobno int(11) not null,
emailid varchar(30) not null,
gender varchar(10) not null,
dob date not null ,
uname varchar(20) primary key,
upass varchar(20) not null,
regdate datetime not null,
img blob
);
Description:
registeradmin table stores the information about the newly registered admins. The
registeradmin table can manipulate the data related to the admins and can approve and deny
the requested by admins. registeradmin table contains various fileds such as
fullname,mobno,emailed,dob,etc,
14
GENDER varchar(10) not null,
SALARY int not null,
QUALIFICATION varchar(30) not null,
suname varchar(30) not null,
spass varchar(30) not null,
adminname varchar(30) not null
);
Description:
The availstaff Table contains the information about the staff’s created by admins.. The table
contains the information about the staff’s such as id, fullname, mobno, address,
pincode ,reg_date, gender.
Description:
The classes table contains the information about class such as name and department of the
class which is created by classes.
15
Description:
The students table contains information about students such as student name,mobile no,date of
birth,email,address,admission date, gender,etc. Here only staff’s can create students.
4. Command Execution:
insert:
insert into classes values(‘PLASTIC POLYMER (4th SEM)’,’jack’);
insert into classes values(‘COMPUTER(5th SEM)’,’william’);
insert into classes values(‘ELECTRONICS (3th SEM)’,’smith’);
Select:
- select * from availstaff;
- select * from students;
Display the contents of the table by using the select queries.
Update:
- update student set name = ‘benjamine white’ where id = 10;
Updated the values using the update command.
Delete:
- delete from registeradmin where id = ?;
Delete the record from the registeradmin whose id is specified instead of the Question Mark(?)
16
Conclusion
• After overall completion of this project, we have understood how to write commands to
perform operations on database of a given application.
• We have understood the general syntax to write commands in SQL.
• We have understood how commands work in SQL.
References
1. VS Code IDE:
Website: VS Code IDE Downloads.
URL: https://code.visualstudio.com/download
2. MySQL Workbench:
Website: MySQL Workbench.
URL: https://www.mysql.com/products/workbench/
17