Topic 06 Flashcards
(41 cards)
4 cardinalities of database
one to one
one to many
many to many
many to one
what is spatial data “special”
the geographic world doesnt fit well into the flat tables so GIS databases are often much more complex then non-spatial databases
database
facilitates efficient storage and retrival of data
capable of manipulating large columves of data
tools for managing, protecting, controlling, maintaining spatial integrity
steps beyond excel functions
advanced features of a database
data security
maintain integrity
allow concurrent access
support user queries while managing security
independence of data/human database interaction
automatic of tasks
easiest way to store data
the simplest forms is in a flat table
consists of records (rows) and attributes (columns)
problems iwth single tables
easy to use for limited amounts of data
not efficient for large or complex data
redundant data causes issues
limitations of single flat tables
produces redundant data
inefficient data entry, storage and queries
limitations continued (typographical errors)
lots of errors in existing data
these errors are not understood by the computer
ex. using Mr. Mr, Sir for the same person is seen as different by the computer
updating data in a single table
can be problematic to existing data entries
modifying data in a single table
problems with how data is set up and new entries
best solves
store data in a different table
use of multiple tables
reduces or solves the main problems with single tables
original info can be reproduced from the information in the new tables
making tables work together
essentially relational databases do two things that allow us to store information about the real world
creating ‘correct’ tables
rule of thumb: provide a separate table for each real world entity for you are storing informaton
ex a customer, employee, an order, a product
data normalization: ensure appropriate defined tables
relating tables
should follow the logical relationships between the real world entities
one to one relationship
one entity (record)in a table is associated with one and only one entity (record) in a related table
ex. employee and IT email
one to many relationship
one entity in a table associated with many entities in another table
ex. customer to several orders
many to many relationship
many records associated with multiple records in another table
ex. multiple customers linked to multiple employees
modelling relationships
The conceptual model defines how the user views the database
levels of data model abstraction
increasing abstraction
- reality
- conceptual model
- logical model
- physical model
keys and joins
used to implement relationships among entities in a database
always used together
keys
a filed (column) in a table used to identify a record
primary key
unique
provides information to uniquely identify a record
ex. employee ID number
foreign key
in another table
join one table to another
creates a logical data model that defines the structure of the database
how many things are being connected*
data integrity
preserves the accuracy of the information
keeps all the data reliable
not all errors can be avoided
lots can be identified by enforcing data integrity rules