Introduction to Database Management Systems: Structure, Applications, and Key Benefits
19,667 views
37 slides
Nov 06, 2022
Slide 1 of 37
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
About This Presentation
Explore the essentials of Database Management Systems (DBMS), including fundamental concepts, key applications in various industries, and advantages like data integrity, security, and independence. This presentation delves into data models such as hierarchical, network, relational, and object-orient...
Explore the essentials of Database Management Systems (DBMS), including fundamental concepts, key applications in various industries, and advantages like data integrity, security, and independence. This presentation delves into data models such as hierarchical, network, relational, and object-oriented models, with practical examples and a deep dive into the structure and functions of tables, records, fields, and keys.
Size: 1.03 MB
Language: en
Added: Nov 06, 2022
Slides: 37 pages
Slide Content
DATABASE MANAGEMENT SYSTEM
INTRODUCTION TO DATABASES
Adatabaseisacollectionofdataorganizedtoservemany
application.Byusingcentralizeddataitcaneasilybeaccessed,
managed,andupdated.
AndaDATABASEMANAGEMENTSYSTEM(DBMS)isacollection
ofprogramsthatenablesyoutostore,modify,andextract
informationfromadatabase.
ADVANTAGES OF USING A DATABASE APPROACH
•FlexibleDataAccess.
•ImprovedDataIntegrity(purity,).
•ImprovedDataSecurity.
•DataIndependence.
•ReducedDataRedundancy(excess).
•AbilitytoShareandRelateData
•StandardisationofData.
•IncreasedProductivity.
DBMS and Its Applications:
ADATABASEMANAGEMENT SYSTEM(DBMS)isa
computerizedrecord-keepingsystem.Itisarepositoryora
containerforcollectionofcomputerizeddatafiles.
Applicationareasfollows:
–Banking
–Airlines
–Universities
–Manufacturingandselling
–Humanresources
–Railwayreservationsystem
–Librarymanagementsystem
–Socialmediasites
–Telecommunications
–Onlineshopping
–Humanresourcemanagement
ELEMENT OF DATABASE
FIELDS:Afieldispartofarecordandcontainsa
singlepieceofdataforthesubjectoftherecord.
InthedatabasetableillustratedinFigure4,each
recordcontainsfourfields:
An Example of a Table
Records
Fields
Name GatorLinkPhone College
Graff rgraff 392-3900Pharmacy
Harris bharris 392-5555Medicine
Ipswich zipswich846-5656PHHP
PRIMARY KEYS & FOREIGN KEYS
Name User Phone College
Graff rgraff 392-3900Pharmacy
Harris bharris 392-5555Medicine
Ipswich zipswich846-5656PHHP
Toensurethateachrecordisuniqueineach
table,wecansetonefieldtobeaPrimaryKey
field.
APrimaryKeyisafieldthatthatwillcontain
noduplicatesandnoblankvalues.
ForeignKeyslinktodatainothertables
DATA MODELS
1.HIERARCHICAL
2.NETWORK
3.RELATIONAL
4.OBJECT
1. HIERARCHICAL MODEL
Storesdataashierarchicallyrelatedtoeach
other.Recordshapearetreestructure.
BUET
Faculty of
Civil Engineering
Faculty of
Architectural
CE WRE URP Archit.
HIERARCHICAL DATABASE MODEL
HIERARCHICALDATABASEMODEL
•Logicallyrepresentedbyanupsidedown
tree
–Eachparentcanhavemanychildren
–Eachchildhasonlyoneparent
HIERARCHICAL MODEL
•Severalrecordsorfilesarehierarchicallyrelatedwitheach
other.Forexample,anorganizationhasseveraldepartments,
eachofwhichhasattributessuchasnameofdirector,number
ofstaffs,annualproductsetc.
•Eachdepartmenthasseveraldivisionswithattributesofname
ofmanager,numberofstaffs,annualproductsetc.
•Theneachdivisionhasseveralsectionswithattributessuchas
nameofhead,numberofstaff,numberofPCsetc.
Advantage and Disadvantages of
Hierarchical Model
Advantages
Highspeedaccesstolargedatabases
Easytoupdate-(toaddordeletenewnodes)
Disadvantages
LinksareonlypossibleinVerticalDirection(fromtopto
bottom)butnotforhorizontalordiagonalunlessthey
havesameparents.
Forexample,itishardtofindwhatistherelation
betweenURPandDCEfromthisdatamodel.
Network Database Model
•Each record can have multiple parents
–Composed of sets -relationships
–Each set has owner record and member record
–Member may have several owners
–A set represents a 1:M relationship between the
owner and the member
Figure 1.10
3. RELATIONAL MODEL
•Based on two important
concepts:
–Key of relation-one to
one, one to many, many to
many
–Primary attribute–which
can’t be duplicate
Student
ID
Name CourseID
1 Mr. X 001
2 Mr. X 002
3 Mr. Y 003
Cour
seID
Title Cre
dit
001RS & GIS in WM 3
002Watershed Hydrology3
003Risk Management 3
Coursetable
StudentTable
Student Table Course Table
* *
Many to many relationship
WHAT IS A RELATIONAL DATABASE?
•Adatabaseismorethanjustacollectionof
information.Suchasstudentandcourseinformation,
facultyandgrades.
•Adatabaseisarepresentationofthepeopleand
thingsyourbusinessneedstooperate,andtheway
thosepeopleandthingsrelatetoeachother.
•Adatabasesystemsupportsthebusinessrules
definedbythecustomer.
WHAT IS QUERY LANGUAGE?
•Querylanguage(QL)referstoanycomputer
programminglanguagethatrequestsand
retrievesdatafromdatabaseandinformation
systemsbysendingqueries.
WHAT IS QUERY ?
Aqueryisarequestforinformationfroma
database.
Find the relationship between this two
tables in the BUET Library
ISBN Title Author
050 Applied
Hydrology
David
Maidmen
060 IrrigationCheng
ID Name ISBN
1 Mr. P050
2 Mr. Q060
3 Mr. R070
Book Table
Borrow Table
One to one
Many to Many
One to Many
?
Object Oriented Model
BUET
Departments Institutes
CE
WRE
DCE IWFM
URP
AIT
Faculty, Staff, StudentsAttributes:
Is a
Is a Is a
Is a = Inheritance
Part of = association
Part of
Part of