Week 2 Flashcards

1
Q

The diagram that identifies the entities in the database and shows how they are related (logical representation) is called what?

A

E-R Model (Entity-relationship model)

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

What are the 3 relationship types in a database?

A

One-to-One
One-to-Many
Many-to-Many

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

Why is database normalization used?

A

To reduce/eliminate data redundancy and avoid anomalies

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

This identifies each record

A

Primary Key

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

When more than 1 field is needed to uniquely identify a record, what type of key is used?

A

A composite primary key

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

When a composite primary key is used, but a record only depends on part of the primary key, what occurs?

A

Partial dependency

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

When at least 1 value in a record isn’t dependent on the primary key, but on a different field, it is what?

A

Transitive dependency

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

What does the 1NF in normalization do?

A

eliminates all repeating values and identifies a primary or primary composite key

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

What does the 2NF in normaliztion do?

A

Makes sure the table is in 1NF and eliminates partial dependencies

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

What does the 3NF in normaliztion do?

A

Makes sure the table is in 2NF and removes any transitive dependencies

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

This key is used to establish a relationship between tables and is a primary key in one of the tables. It’s usually on the many side of a relationship.

A

Foreign Key

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

Since many-to-many relationships can’t exist in a relational database, a _____ is used to create two one-to-many relationships.

A

bridging entity

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

A table that references the foreign key to show what a particular value is.

A

Lookup table

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

This is the language used to create database objects and manipulate data stored in a database.

A

Structured Query Language (SQL)

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

What is the difference between a query and a transaction?

A

Query- causes data to be retrieved

Transaction- causes data to to read and written (updating, creating, deleting objects)

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

The ability to change the structure of the data without having to change the program to access the data is called what?

A

program-data independence

17
Q

The ability to change an operation in the data without having to change the interface used to process the operation is called what?

A

program-operation independence

18
Q

A ___ is the difference perspectives that different users need to see the data.

A

View

19
Q

An ____ is based on tree data structures or hash data structures that are suitably modified for disk search.

A

Index

20
Q

When every A record must be related to a B record, it is called what?
(A section record must be related to a course record)

A

Referential integrity

21
Q

Rules or definitions for the data in a database.

A

Integrity constraint

22
Q

A collection of concepts that is used to describe the database structure (data types, relationships, constraints, etc) is called what?

A

Data model

23
Q

An ___ represents a real-world concept or object.

A

Entity

24
Q

Data that further describes an entity.

A

Attribute

25
Q

What data is in the database at a given point in time.

A

Database state, instance.