Dbms Project y
Dbms Project y
Guided by
Akshay Mungad
Affiliated to
MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION,
MUMBAI – 51
Academic year : 2023-2024
1
MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION,
MUMBAI – 51
CERTIFICATE
This is to certify that Mr. / Ms________________________________________________________
Roll No:____________ of First Semester Of Diploma in _________________________ Engg
of Institute SHRI GULABRAO DEOKAR POLYTECHNIC, JALGAON ( Institute Code
: (0509) has completed the micro project satisfactorily in the Subject:- Database
Management System (22319) for the academic year 2023 to 2024 as prescribed in
the curriculum.
2
0.4 Action Plan
Plan Plan
Name of responsible team
Sr.no Detail of activity Start Finish
members
Date Date
6. Print micro project 21/09/23 27/09/23 52. SAYYED MOHAMMD RAYYAN SAJID ALI
3
INTRODUCTION
Nurses, Hospitals, Medicines etc. It used structure data and to define the
relationships between structured data groups of Hospital Management System
functionalities. The main entities of the Hospitals, Patient,Doctors, Nurses,
Appointments and Medicines.
Applications of DBMS
1. The development of computer graphics has been driven both by the needs
of the user community and by the advances in hardware and software. The
applications of database are many and varied; it can be divided into four
major Hierarchical and network system.
2. Flexibility with relational database.
3. Object oriented application.
4. Interchanging the data on the web for e-commerce.
4
What is MySQL?
MySQL is multithreaded, multi user SQL database management System(DBMS).
The basic program run as server providing multiuser access to a number
of databases. The project’s source code is available under terms of the GNU
General
Public Licence, as well as under a variety of property arguments. MySQL is a
database. The data in a MySQL is stored in a Database objects called tables. A
table is a collection of related data entries and it consists of columns and rows.
Thedatabases are useful when storing information categorically.
As you might have observed from the simple program in the previous section,
MySQL uses mainly uses six commands in which SELECT is used to retrieve rows
selected from one or more tables. FROM refers to the table from which we need
to select the attributes. WHERE clause, if given, indicates condition or conditions
that rows must satisfy to be selected. where_ condition is expression that
evaluates to true for each row to be selected. This statement selects all rows if
there is no where clause. GROUP BY clause used to group the values of the
attributes provided that values must be same. HAVING clause is applied nearly
last, just before items are sent to the client, with no optimization. If the HAVING
clause refers to a column that is ambiguous, warning occurs. ORDER BY clause is
used for the purpose of sorting the values of the attributes in a result. If you use
GROUPBY ,output rows are sorted according to GROUP BY columns as if you had
an ORDER BY for the same columns.
MySQL-related Libraries
5
and query caching, features that are not available with the lib my sql client, so
using the built in library is highly recommended. It is recommended to use the
my sql and library instead of the my sql client server. Both libraries are
supported and constantly being improved.
6
STEP 2 :-Converting the ER-Diagram into Tables.
Converting entity to tables and attributes to columns.
❖ HOSPITAL
7
Patient :-
Pat-Id Primary key
Medical
Report
PName
PAddress
PDiagnosis
Doctor :-
DName
Qualification
Salary
8
Step 3: Mapping of Attributes
• Simple Attributes
Simple Attributes which can not be divided into subparts.
Example: Salary of Doctor
Composite Attributes
Composite attributes which can be divided into subparts
Example: Patient name ,doctor name
Pat-id Hospital table makes foreign key refrences to Pat-id of patient table
Hosp-id Patient table makes foreign key refrences to Hosp-id of Hospital table
Hosp_Doctor
Hosp-id Doctor table makes foreign key refrences to Hosp-id of Hospital table
Doc-id Hospital takes makes foreign key refrences to Doc-id of Doctor table
9
Hosp-id Doctor table makes foreign key refrences to Hosp-id of Hospital table
Patient_MedicalRecord
Pat-id Medical table makes foreign key refrences to Pat-id of Patient table
Record-id Hospital takes makes foreign key refrences to Doc-id of Doctor table
Conclusion
10