LectureFour - Spatial Databases and Database Design
LectureFour - Spatial Databases and Database Design
MATINGO
FOR GEOMATICS
[email protected]
APPLICATIONS
HSVG245
To
be
continued
…
LECTURE OUTLINE
• The
relational
data model
• Introduction to Database Management Systems
(DBMS)
• Entity
Relationship
• Types of DBMS
Diagrams
(ERDs)
• Database Design Concepts and Procedures
Image Source: GIS Geography
2
DATABASE MANAGEMENT SYSTEMS
DATABASE MANAGEMENT SYSTEMS(1)
DATABASE MANAGEMENT SYSTEMS(2)
DATABASE MANAGEMENT SYSTEMS(3)
DATABASE MANAGEMENT SYSTEMS(4)
DATABASE MANAGEMENT SYSTEMS(5)
DATABASE MANAGEMENT SYSTEMS(6)
DATABASE MANAGEMENT SYSTEMS(7)
DATABASE MANAGEMENT SYSTEMS(8)
Query optimiser
• One of its tasks is to derive for every query request
a number of alternative, but equivalent, execution
plans, and then to choose that plan, using a time
cost model, that is expected to perform best (will
use least amount of time).
DATABASE MANAGEMENT SYSTEMS (9)
DATABASE MANAGEMENT SYSTEMS(10)
DATABASE MANAGEMENT SYSTEMS(11)
Self test
STAGES INDATABASE
DESIGN
Maintenance
Support
Database Design
Requirements
Analysis
Operation Implementation
PHYSICAL ANDLOGICALDATABASEDESIGN
Physical Design
• This is concerned with the location of different parts of the
database within the computer file system
• The database may be spread across multiple physical disk
drives to balance I/O load or for security in the event of
media failure
• The physical database design is the responsibility of the
database administrator
Logical Design
• This represents the user’s view of the relationships
between datasetsstored in the database
• Logical and physical design should be quite separate, users should not
have to concern themselves with where and how their datasets are
physically stored (Martin, 1976)19
DATAANALYSIS
• The firststage in logical database design
• Data analysis allows a clearly defined conceptual model of the relationships between
different datasets to be developed, before the necessary resources are committed
to actual implementation of the database
• Without a clear understanding of these relationships, it is likely that the database will be
inefficient in design and will have a poor match to user’srequirements • A variety of
possible data analysis or data modelling techniques have been developed. The approach of
Chen (1976), based on the entity- relationship (ER) model, is probably the widest accepted
• Another important aspect of data analysistechniques is that they have
associated with them clear and unambiguous diagramming standards
• The ability to represent the structure of a complex set of data interrelationships in a
consistent graphical form is a powerful aid to understanding the problem and
communicating the results of the da20ta analysisto the intending users of the final
database
DATAANALYSISANDSYSTEM
DESIGN
21
MODEL(1)
THE RELATIONAL DATA
MODEL(1)
THE RELATIONAL DATA MODEL(2)
▪an attribute is a property
of an entity
– e.g. a person has an age,
a car has a colour
THE RELATIONAL DATA MODEL
(3)
THE RELATIONAL DATA MODEL(4) Self test
THE RELATIONAL DATA MODEL(5)
Self
test
THE RELATIONAL DATA MODEL(6)
THE RELATIONAL DATA MODEL(7)
MODEL(13)
THE RELATIONAL DATA MODEL(14)
• A key
made
of
more
that
one
attribute is called a composite key
Self test
THE RELATIONAL DATA
MODEL(17)