Complete Notes On DBMS
Complete Notes On DBMS
• DBMS
• Database Management System
• EDBMS
• Electronic Database Management System
• RDBMS
• Relational Database Management System
• ERDBMS
• Electronic Relational Database Management System
• What is information?
The processed data
which are meaningful to the users, to make decisions.
• What is a Database?
It is a collection of organized data or information
typically arranged and stored in paper media or electronic media
In order to filter and access (taking back) quickly and easily.
© www.olus.lk. All rights reserved.
DBMS Take IT easy with Christy
A database is an organized collection of structured information, or data,
typically stored electronically in a computer system.
* What is DBMS?
Things to remember…
* The differences between Manual and Electronic DBMS
* Advantages and disadvantages
- Content
* Types of DBMS
* Data Groups
* ERD – Entity Related Diagram
* Constrains – A set of rules used in RDBMS
* Key concepts
* Relationships
Things to remember…
* Software for ERDBMS
* Microsoft Access – Interface, Extension Names
- Content
Smart Phones
Software Systems
Internet
Social Medias
Data Servers
© www.olus.lk. All rights reserved.
Drawbacks of Manual Databases Take IT easy with Christy
Manual Electronic
Records
CIS0001 Mark 93/10/09 M English 076775232
Tuples (Rows)
Attribute
Field
TUPLE (ROW) (Column)
Teachers
Inventory Students
Coaches Subjects
School
Non-
Academics ECA
Staff
School
Classrooms
Services
Houses
* Ellipse
First_Name Last_Name * Singular Noun
Attributes * Name: Title Case, No_Spaces
* First_Name
* Double Lines
* Multi Valued
Name * Rectangle
* Contact_No * Singular Noun
Entity -Table * Name: Title Case, No_Spaces
* Student
DOB
* Prime Attribute
* Primary Key
Age * Dotted Lines St_ID * Underline it
* Derived Data * St_ID
* Marks - Grade
© www.olus.lk. All rights reserved.
ER Diagrames Take IT easy with Christy
Add_No
NIC F_Name
Contact_No L_Name
Address
Student DOB
Medium Gender
Religion
Student
Add_No F_Name L_Name DOB Gender Religion Medium Address City Contact_No
Candidate Key
Super Key
Primary Key
Foreign Key
e.g:
Staff_ID, Student_ID, Item_ID, Book_ID
e.g.:
* SK – Super Key * SK * CK
Photo L_Name
* PK – Primary Key
Salary DOB
Gender
Maritual_Status
Academic_Staff
Religion
ETF
* CK
Medium
EPF
* CK Address
NIC Contact_No
Email * CK * CK
* CK City
© www.olus.lk. All rights reserved.
ER Diagrams Take IT easy with Christy
Class_ID
Class_Name
Class Class_
Teacher
Location
Asst_Teach Monitor
er
© www.olus.lk. All rights reserved.
ER Diagrams Take IT easy with Christy
House_ID
House_ House_Name
Captian
House House_In
Games_
Cap
Logo
Colour
One TO One
One TO Many
Many TO Many
1 1
Principal admin School
1 1
1 1
Principal admin School
1 1
PK Principal FK PK FK
School
Pr_ID Title First_Name Gender Contact SL_ID Schl_Name City Contact Pr_ID
SL_ID
P001 Rev. Fr. Shiwantha M 077*** SL004 SL001 LIS N-Eliya P002
P002 Mr. Patmore M 071*** SL001 SL002 RIS Ragala P005
P003 Mrs. Rebeca F 077*** SL003 SL003 IBS N-Eliya P003
P004 Mrs. Jasintha F 076*** SL005 SL004 OLUS N-Eliya P001
P005 Mr. Mark M 072*** SL002 SL005 GSC N-Eliya P004
1 1
Student 1… *
in
1 House
n
PK Student FK PK FK FK
House
St_ID First_Name DOB Gender Contact SL_ID H_ID H_Name Colour H_Captain St_ID
ST001 Shane 12/6 M 077*** H01 H01 Raphael Yellow ST003 ST001
ST002 Taniya 10/01 F 071*** H02 H02 Michael Red ST004
ST003 Keneth 03/05 M 077*** H03 H03 Gabriel Blue ST007
ST004 Natasha 02/07 F 076*** H01
ST005 Larry 10/09 M 072*** H02
ST006 Juditha 04/18 F 076*** H03
ST007 Vikash 10/01 M 071*** H01
1 1
Student 0…*
learn
1 Class
n
PK Student PK Class
FK FK FK
St_ID First_Name DOB Gender Contact Cls_ID Cls_ID Class_Name Class_Teacher St_ID
ST001 Shane 12/6 M 077*** 10S1 10S1 10 Sin-1 ST001 ST001
ST002 Taniya 10/01 F 071*** 10S1 10S2 10 Sin-2 ST002
ST003 Keneth 03/05 M 077*** 10S1 10T1 10 Tam -1 ST003
ST004 Natasha 02/07 F 076*** 10S2 10T2 10 Tam -2 ST004
ST005 Larry 10/09 M 072*** 10S2 11S1
ST006 Juditha 04/18 F 076*** 10T1 11T1
ST007 Vikash 10/01 M 071*** 10T2
n
1 1…*
Student 0…*
take
1 Subject
n
n m
Many to Many
Student_Subject
FK FK
St_ID Sub_ID
ST001 Sub01
ST001 Sub02
ST002 Sub01
ST002 Sub03
ST003 Sub01
ST001 Sub02
© www.olus.lk. All rights reserved.
Relationships – Constraints Take IT easy with Christy
FK FK
PK Student PK Subject
St_ID First_Name DOB Gender Contact Sub_ID Sub_ID Sub_Name Sub_Teacher St_ID
ST001 Shane 12/6 M 077*** Sub01 Sub01 Maths ST010 ST001
ST002 Taniya 10/01 F 071*** Sub02 ICT ST004
ST003 Keneth 03/05 M 077*** Sub03 English ST003
ST004 Natasha 02/07 F 076*** Sub04 Science ST009
ST005 Larry 10/09 M 072*** Sub05 Music ST008
Student_Subject
FK FK
St_ID Sub_ID PK Composite Key
ST001 Sub01
ST001 Sub02
ST002 Sub01
ST002 Sub03
ST003 Sub01
ST001 Sub02
© www.olus.lk. All rights reserved.
Composite Key Constraint Take IT easy with Christy
Base
© www.olus.lk. All rights reserved.
Software Types for ERDBMS – Enterprise Versions Take IT easy with Christy
Queries are used to filter data from one or many tables in the database.
Macros help you perform routine tasks by automating them into a single command.
Description
The data type It helps the user
Data Type
of your field.
determines the to type a note
Field
Data Types
Auto Number
Yes/No
OLE Object
Hyperlink
Attachment
Calculated
© www.olus.lk. All rights reserved. Lookup Wizard
Data Types Take IT easy with Christy