You are on page 1of 20

Husnul Hidayat only

SPATIAL DATABASE SYSTEM Geomatics ITS


2020-2021
SPATIAL DATABASE SYSTEM
Course: Exercise:
Held every Wednesday @ 07.00-09.00 Held every Friday @ 09.00-11.00 a.m
a.m
Using Zoom or ITS Classroom
Using Zoom or ITS Classroom
Lecturer: Pak Neo
Lecturer: Pak Husnul
TOPICS
• Concept of Spatial Database
• Architecture and Rules in Spatial Database
• Tables
• Spatial Database Design
• Algebraic relations in tables
• Relational database language
• Designing spatial database using Database
Management System software
LEARNING OUTCOME
1 Students able to use concepts and principles of database to
identify problems in geomatics
2 Students able to apply methods of designing and building spatial
database system and analysis to solve geospatial problems
3 Students able to visualize spatial database using Geographic
Information System software
4 Students able to create report and present the result of database
system both oral or written
TIME TABLE
week Lecture Task

1 Preface, concept of database n/a


2 Database management system, database and programs, component of database Task 1
3 Data model, databse scheme, database architecture, component of DBMS, classification of Task 2
DBMS
4 Tables, Data characteristics Task 3
5 Data deterrmination, Table normalization Task 3
6 Entity Relationship Diagram, degree of participation Task 4
7 ERD design, Database design Task 4
8 Mid-term Exam Mid-term Exam
9 Information system, database design Exercise 1
10 Query, identity constraint, table operations, algebraic relationship Exercise 2
11 Data Definition Language, Data Manipulation Language Task 5

12 Data Definition Language, Data Manipulation Language Task 5

13 Spatial database, type and format in spatial database Task 6


14 Database visualization, spatial query Task 6

15 Geodatabase, database visualzation in GIS Task 6


16 Final Exam Final Exam
TABLES
TABLE
A table consists of rows Nama
Jenis (nama)
and columns tabel Tabel Mahasiswa
kolom/item/
The intersection between NIM NM_MHS ALAMAT KOTA field/attribut
row and column is a cell 1518801 Aa Jl. X Bandung
which has a data
value/attribute 1518802 Bb Jl. Y Jakarta
1518803 Cc Jl. X Surabaya
Table representation:
Student (ID, Name, … … … …
Baris/
Address, City record n Cc Jl. Z Serang Nilai data/
attribut
TABLE REQUIREMENTS
1. The row (record) order is interchangeable without affect the information in the
table.
2. The column (field/attribute) order can be arbitrary and each column has unique
name.
3. Each cell only has single data value/attribute
4. Each record with all its attribute values must be unique.
NULL VALUE
The attribute value can be “nothing” Animal N_eggs
rather than zero because the actual
value is nothing. Velociraptor 2

Example: a Velociraptor may have 0


Brachiosaurus 1
eggs, 2 eggs, or 3 eggs, while the
Mammoth never laid any eggs.
Liopleurodon -

Look at the table of zoo database >> Stegosaurus 0

Mammoth -
A NORMAL TABLE
A table is considered as normal
table if fulfills the table
NIM ALAMAT NIM ALAMAT
requirements.
1518801 Jl. X 1518801 Jl. X
Common errors occur at the 3rd 1518802 Jl. Y, Jl. X 1518802 Jl. Y
requirements
… … 1518802 Jl. X
A table that has been tested n Jl. Z … …
for certain process is named n Jl. Z
fully normalized table
REDUNDANCY AND DUPLICATION
Duplication: when there PART DESCRIPTION
are more than 1 P1 tire
identical attribute value P2 rim
Redundancy: a P3 gear
duplication that doesn’t P4 tire
contribute anything to
the information on the
table, i.e. we can
eliminate it without losing
any information.
REDUNDANCY AND DUPLICATION
Duplication: when there
are more than 1
identical attribute value
Redundancy: a
duplication that doesn’t
contribute anything to
the information on the
table, i.e. we can
eliminate it without losing
any information.
REDUNDANCY AND DUPLICATION
Duplication: when there
are more than 1
identical attribute value
?
Redundancy: a
duplication that doesn’t
contribute anything to
the information on the
table, i.e. we can ?
eliminate it without losing
any information. ?
Tidak redundant
REDUNDANCY ELIMINATION

Identify the duplication


REDUNDANCY ELIMINATION

Identify the redundancy


by recovering the
information if the data is
eliminated
REDUNDANCY ELIMINATION

Identify the attribute


dependency which
contains redundant data
with other columns

Kolom NM_MHS, ALAMAT_MHS dan NIP dengan NIM


Kolom NM_Dosen dengan NIP
REDUNDANCY ELIMINATION

Tabel Mahasiswa
Split the table based od
Tabel Dosen column/attribute
dependency

17
REPEATING GROUP

This is not a good table because violates the 3rd requirement. It can lead to a derivative table
(table in a table).
The value of #komponen can be unlimited, which can lead to different row length (different
number of columns)
If the row lengthis forced to be the same, there will be a truncated value or even null value
REPEATING GROUP

Solution: write in vertical format by creating duplication. This duplication is necessary (hence not
a redundancy).
TASK 3
Group task
Create 3 tables from your database
Each table must be related each other
Each table must fullfills the table requirements

Presented at Friday 23 th
File (PPT and PDF) submitted 27th October 2020 at 22.00

You might also like