Topic 06 Flashcards

(41 cards)

1
Q

4 cardinalities of database

A

one to one

one to many

many to many

many to one

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

what is spatial data “special”

A

the geographic world doesnt fit well into the flat tables so GIS databases are often much more complex then non-spatial databases

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

database

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

advanced features of a database

A

data security

maintain integrity

allow concurrent access

support user queries while managing security

independence of data/human database interaction

automatic of tasks

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

easiest way to store data

A

the simplest forms is in a flat table

consists of records (rows) and attributes (columns)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

problems iwth single tables

A

easy to use for limited amounts of data

not efficient for large or complex data

redundant data causes issues

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

limitations of single flat tables

A

produces redundant data

inefficient data entry, storage and queries

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

limitations continued (typographical errors)

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

updating data in a single table

A

can be problematic to existing data entries

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

modifying data in a single table

A

problems with how data is set up and new entries

best solves
store data in a different table

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

use of multiple tables

A

reduces or solves the main problems with single tables

original info can be reproduced from the information in the new tables

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

making tables work together

A

essentially relational databases do two things that allow us to store information about the real world

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

creating ‘correct’ tables

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

relating tables

A

should follow the logical relationships between the real world entities

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

one to one relationship

A

one entity (record)in a table is associated with one and only one entity (record) in a related table

ex. employee and IT email

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

one to many relationship

A

one entity in a table associated with many entities in another table

ex. customer to several orders

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

many to many relationship

A

many records associated with multiple records in another table

ex. multiple customers linked to multiple employees

18
Q

modelling relationships

A

The conceptual model defines how the user views the database

19
Q

levels of data model abstraction

A

increasing abstraction

  1. reality
  2. conceptual model
  3. logical model
  4. physical model
20
Q

keys and joins

A

used to implement relationships among entities in a database

always used together

21
Q

keys

A

a filed (column) in a table used to identify a record

22
Q

primary key

A

unique

provides information to uniquely identify a record

ex. employee ID number

23
Q

foreign key

A

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*

24
Q

data integrity

A

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

25
four types of integrity errors
errors in standardized data erros in non standardized data error between data in different fields errors between keys in different tables
26
validation rules
enforcing appropriate data types
27
errors in non standardized data
entry errors are very critical errors may occur in standardized data that exist in a single field often errors like this can be detected if one uses validation rules
28
ways to check and fix validation rules
enforcing appropriate data types attribute domains validation functions uniqueness
29
validation rules: attribute domains
the most common type uses limits or constrains the type of information that can entered ex. number only for birth year
30
validation rules: validation functions
custom designed expressions, scrpts, code powerful method
31
validation rules: uniqueness
a built in validation rule that is often used with keys to check for unique values
32
errors in non-standardized data
logical consistency can be checked for errors
33
errors between keys in different tables
referred to as errors of referntia integrity occurs when there Is an incosistency between tables
34
referential integrity
powerful tools to chec and maintain referential integrity among tables that exist in most databases the most common checks between tables 1. deletions in one table can be checked to all related tables 2. updates information in one table can be checked to related tables
35
indexes
are another powerful feature of databases that separate them from other methods to store data such as spreadsheets used to speed up searches and queries for your database
36
why to use indexes
easy to find info when organized efficiently cross referenced with other things ex. name in phonebook
37
how do indexes work
essentially a join can have multiple indexes sortsbased on order
38
pros of indexes
improves searching speed
39
cons of indexes
slows data entry and updates increases size of database and redundencies
40
when to use indexes
used as a key or field used to query the data
41
when not to use indexes
onevery field in the table fields that wont be searched constant inputs or updates to the entries