Data bases Flashcards

1
Q

Data models

A

Organizes data elements and standardizes how data elements relate to one
another

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

four different models and their definition

A

flat file model:
store information
in the most basic format

Hierarchical Model:
Let’s you define simple parent-child
relations and restricts access to make edits.

Network Model:
complex relations, allows for multiple access points and limited access to make edits

Relational Model:
relations between entities
with relations between integers,
strings, and other attributes.

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

Traditional File Processing System

A

simple system in which the data is contained in independent tables

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

File Processing Systems -
Characteristics

A
  1. Separate data files are created and stored
  2. Data is duplicated in separate files for separate applications
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

File Processing Systems -
Problems

A
  • poor security
    -limited data sharing
    -data redundancy
    -data inconsistency
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Database Approach -
Characteristics

A

a centralized collection of data organized in an efficient way that allows you to use it in many different applications. It’s stored in one location in one single database meaning you don’t have to make duplicate copies.

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

Advantages of the Database
Approach

A

-improved security
-improved flexibility
-minimal data inconsistency and redundancy

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

which of the different model fall under the database approach

A

hierarchical model
relational model
network model

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

The relational database model…how does it work?

A

It’s a two dimensional table, in which which record has a unique identifier that link tables to one another

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

primary key

A

Every table/entity has a primary key that uniquely identifies it. The number of attributes needed to uniquely identify a record is the maximum and minimum amount that it needs.

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

Foreign Key

A

is the way in which the tables are being tied together, the primary key becomes a foreign key in the other table.

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

True or False: All values of foreign keys must exist as values in
the parent table

A

True

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

Entity Relationship Diagrams (ERD)

A

is a data model that
graphically depicts relationships between entities

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

ERD - Elements

A

Entity: A person, place, object, event (example: student)

attribute: characteristics of the entity (example: student ID, student first name)

relationship: association with other entities (line between student and phone number)

cardinality: the count of instances that are allowed (on-to-one, one-to-many, many-to-many)

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

Assigning Foreign Keys- ERD model

A

One to One Relationship:
take a primary key from any of the entities and put it as a foreign key in the other entity.

One to many relationship:
take the primary key in the one side and put it as a foreign key on the many side

many to many relationship: create an associative entity

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

How to create an associative entity

A

Create an entity in the middle of them where there is a one to many from the parent to the associative entity. Then, place the primary keys from both entities as a combined foreign key in the associative entity.

17
Q

Data Anomalies and Normalization

A

Data anomalies include:

insertion anomaly
update anomaly
deletion anomaly

Normalization is the process in which the anomalies are being eliminated

18
Q

Writing Normalized Table Schema

A

primary keys are underlined

foreign keys are italicized

19
Q

Normalization Forms

A

First normal form:
no attributes have repeating values
,columns have distinct names, columns have consistent data types, and primary key assigned

second normal form:
full dependency on only the primary key

third normal form:
no transitive dependencies, no non-primary key attributes dependent on other non-key attributes

20
Q

Converting ER Diagrams into
Relational Tables

A
  1. Each entity will convert to a table
  2. Each associative entity will convert to a table
  3. place the primary key and secondary keys in there respected places