Databases Flashcards

1
Q

Explain entity

A

a noun - person, place, thing or idea and used as the name of tables

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

Attribute

A

they are columns in tables and represent different characteristics of each entity

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

Explain relationship

A

represents the associations between the tables

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

Explain relation

A

a table

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

Explain relational database

A

A database full of relations (tables)

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

What is functional dependence?

A

When column B is functionally dependent on column A, it means that the values in column A determine the values of column B

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

What does A–>B mean?

A

It means that B is functionally dependent on A

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

Explain the term primary key

A

It means that there is one column or a collection of columns that can determine the rest of the columns - uniquely identifies the records of the table

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

Can primary key have a null value?

A

No

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

Explain the term candidate key

A

Candidate key is closely related to primary key - a candidate key is one of two or more columns that could function as a primary key for the table

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

What is an unnormalized relation?

A

It is a table (relation) that satisfies the criteria for a relation but may contain repeating groups

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

Definition of normal form

A

A table in normal form possesses a certain desirable collection of properties

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

Explain normalization

A

a process in which you identify the existence of potential problems, such as data duplication and redundancy, and implement ways to correct these problems.

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

Explain first normal form

A

A table is in 1NF when it does not contain a repeating group

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

What is concatenation?

A

connected columns (fields)

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

When is a table in second normal form?

A

A relation is in second normal form when it is already in first normal form and no nonkey column is dependent on only a portion of the primary key

17
Q

What is a nonkey column

A

A nonkey column is a column that is not part of the primary key

18
Q

When is the relation automatically in second normal form (2NF)?

A

When the primary key of a relation contains only a single column

19
Q

Name the four categories of update anomalies

A

Updates; Inconsistent data; Additions; Deletions

20
Q

Explain the term determinant

A

Any field (or collection of fields that determine another field is called a determinant i.e. the primary key and therefore any candidate key

21
Q

When is a relation in third normal form (3NF)?

A

A table is in third normal form when it is in second normal form and the only determinants it contains are candidate keys

22
Q

What is an entity-relationship diagram?

A

A diagram that shows the relationships between the entities

23
Q

There are 3 ways to represent entities and relationships in an E-R diagram. Explain them

A

1) An arrow which represents a one-to-many relationship
2) A crow’s foot which represents a one-to-many relationship
3) Inserting a diamond-shaped figure that explains the relationship between the entities

24
Q

What is a field?

A

A field refers to columns

25
Q

What is a record (tuple)?

A

It refers to the rows in tables

26
Q

What does it mean to qualify column names?

A

It refers to when you are working with two or more relations that have common columns. So, you specify which column you are referring to by indicating which relation you are talking about before you specify which column you are working with

27
Q
A