Chapter 4 Relational Databases

0.0(0)
studied byStudied by 0 people
0.0(0)
full-widthCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/19

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

20 Terms

1
New cards

Advantages of Databases

  • Data is integrated into large pools of data which minimizes data redundancy and inconsistencies

  • Data is shared between different functions/ units this allowed for cross-functional analysis to become efficient

  • Data is independent of the programs that use the data, each can be changed without changing the other

2
New cards

Database Management system (DBMS)

software that manages and controls the data and the interfaces between the fata and the applications.

3
New cards

Types of databases:

Relational, hierarchical, network and object-oriented

4
New cards

How are most DBMS accessed

SQL or its variations to access the database

5
New cards

Update anomaly

changing a customer’s address involves searching the entire table and changing every occurrence of that customer’s address

6
New cards

Insert Anomaly

there is no good way to store information about prospective customers or new products until a sales transaction is completed

7
New cards

Delete Anomaly

deleting a sales record could delete information about that customer or that product, resulting unintended consequences

8
New cards

what is a database

a set of interrelated, centrally coordinated data files

9
New cards

what is a file

AKA a (table) is a related group of records

10
New cards

what is a record

(row) is a related group of fields

11
New cards

what is a field

(column) is a specific attribute for the record

12
New cards

Primary Key

An attribute, or combination of attributes, that uniquely identifies a specific record/row in a table.

13
New cards

Foreign Key

an attribute in a table that is also a primary key in another table and is used to link the two tables.

14
New cards

Fact Table

  • contains facts about a business process (e.g., sales of cars)

  • Contains foreign keys to link to dimension tables

  • Often long and contains more numerical fields

  • Located at the center of a star schema

15
New cards

Dimension table

  • Contains attributes of the business process (e.g., who made the sales) and those attributes can be used as filters or grouping variables in data analysis

  • Contains primary key to link to fact tables

  • Often short and contains more descriptive fields

  • Surrounding fact table in a star schema

16
New cards

One to Many or Many to One (1:* or *:1):

the column in one table (usually fact table) can have many instances of a value, and the other related table (usually dimension table) has only one instance of a value.

17
New cards

One to One (1:1)

the column in both tables has only one instance of a value, most probably because that variable is the primary key of both tables.

18
New cards

Many-to-Many (*:*):

This type of relationship could create errors; must be used with caution.

19
New cards

Relational Database General Design Rules

  • Every column in a row must be single valued (e.g., not “television, freezer and refrigerator”).

  • Primary keys cannot be null/empty.

  • Foreign keys, if not null, must have values that correspond to the value of a primary key in another table.

  • All non-key attributes in a table must describe characteristics identified by the primary key.

20
New cards

Manage Relationships & Queries

  • Users may want specific information found in a relational database; they “query” (ask a question) the database.

  • Tools such as Microsoft Access, Structured Query Language (SQL) and Power Query Editor (PQE) can be used to query databases.