Professional Documents
Culture Documents
Database Management System (DBMS)
Database Management System (DBMS)
Database Management System (DBMS)
Database Concept
Relational database
DBMS
• DBMS is a collection of data
(database) and programs to access
that data. The goal of DBMS is to
store, retrieve, and display
information
• Key characteristics of DBMS are:
performance, store large volume of
database, share data (access),
provide security (authorization),
remove redundancy (normalization)
and provide concurrent access
(different users at the same time).
Why we need database?
(electronic map)
Principles of GIS
Information Hardware
GIS
People Software
Database and GIS
GIS database
Text, Images
Sound, movie
Multimedia
Data abstraction
Conceptual level
Logical Level
Instance of schemes
Root (Parent)
A1
Child
B1 B2 Parent
C1 C2 C3
C4 C5 C6
Child
Child
Relational model
• A relational database consists of a collection of
tables, each of which is assigned a unique name
• The relational models differs from network and
hierarchical models in that it does not use
pointers or links. Instead , the relational model
relate records by the value they contain.This
freedom from the use of pointers allows formal
mathematical foundation to be defined
• Examples of RDBMS are Oracle, Informix, and
Sybase
Reasons to use Relational Model
• Independence of the physical data storage and logical
database structure. Results in users do not need to
understand the underlying physical layout of the data
to access data from a logical structure, such as a table
• Variable and easy access to all data. Results in access
to data is not predefined as in hierarchical databases
in which users must understand and navigate through
the hierarchy to retrieve data
• Flexible in database design. i.e complex objects are
expressed as simple tables and relationships
• Applying relational design methods reduces data
redundancy (Normalization) and storage requirements
Relational DBMS
• Aspects of an RDBMS
• One-to-One
• One-to-Many
• Many-to-One
• Many-to-Many
Relational DBMS
• Relational Database Example (1-1)
Weather table
city_name measurement_dt avg_temp
Washington 05-01-94 70
Amsterdam 05-01-94 47 Location table
Warsaw 05-01-94 43 city_name country_name
Tokyo 05-01-94 60 Seattle United States
Washington 05-01-94 55 Amsterdam Neatherlands
Warsaw Poland
Tokyo Japan
Washington 05-01-94
Foreign Key Primary Key
Primary Key
One-to-One
NAME AREA POP1990 NAME POP1997
Caroline 331.8066 27035 Caroline 29424
Talbot 238.2847 30549 Talbot 32565
Dorchester 534.1747 30236 Dorchester 29953
Wicomico 383.3481 74339 Wicomico 79716
Worcester 457.6503 35028 Worcester 41885
Somerset 269.267 23440 Somerset 24251
Complexes table
comp_name N.Shops N.Banks
Kotraya 444 70
H.Plaza 555 47 Owner table
Komtar 622 43 comp_name shop_owner
Kotraya ALi
Kotraya Tan
Kotraya Lee
Primary Key Kotraya Raman
Kotraya Nora
Foreign Key
One-to-Many
Dept. Advisor Advisor Name
Agri Shorter Shorter Aaron
Agri Mollett Ruby Brian
Nat Sci Ruby Mollett Devin
Shorter Eric
Shorter Julie
Ruby Leigh
Dept. Advisor Name Mollett Ronnie
Agri Shorter Aaron Mollett Ryan
Nat Sci Ruby Brian
Agri Mollett Devin
Agri Shorter Eric
Agri Shorter Julie
Nat Sci Ruby Leigh
Agri Mollett Ronnie
Agri Mollett Ryan
Many-to-One