chapter 6 Flashcards

1
Q

what is a simple UID

A

A UID that is a single attribute is a simple UID

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

what is a composite UID

A

If the UID is a combination of attributes, it is called composite UID

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

what is a UID

A

It is the value or combination of values that enables the user to find that one unique item among all the rest.

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

What are artificial UID

A
  • -> dont occur in the natural world but are created for purposes of identification in a system
  • -> people are not born with numbers, but a lot of systems assign unique numbers to identify people
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

A UID can be both _____ and ______

A

artificial and composite

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

Sometimes the UID is a combination of both _________ and a _________

A

attribute and a relationship

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

what can be used instead of a barred relationship to the originating entities

A

Intersection entity

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

What is a candidate entity

A
  • -> sometimes 2 or more UIDs exist
  • -> these are both candidate UIDs
  • -> only one of the candidate UIDs is chosen as the actual UID which is called primary UID
  • -> the other UIDs are called secondary UID
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

example of candidate UID

A

student ID and badge number

  • -> student ID is the primary UID
  • -> badge number is a secondary UID
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

what does a primary key allow you to do

A

access a specific record in teh database

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

There is not limit to the number of attributes that can make up a UID

A

True

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

do you need the barred relationship if you have an artificial UID

A

no barred relationships required

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

what is the normalisation process

A

Database normalisation is a database schema design technique, by which an existing schema is modified to minimise redundancy and dependency of data.

Normalization splits a large table into smaller tables and defines relationships between them to increase the clarity in organizing data.

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

what is the first normal form

A
  • -> the first normal form requires that no multi-valued attributes exist
  • -> to check for 1NF, validate that each attribute has a single value for each instance of the entity
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

how to convert into first normal form

A

if an attribute is multi valued, create an additional entity and relate it to the original entity with a 1:M relationship

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

what is the goal of a database designer

A

store information in one place only and in the best possible way
this can be achieved by applying the rules of normalization

17
Q

what is the second normal form

A

the second normal form requires that any non-UID attribute be functionally dependent on all parts of the UID

*dont write 👇 (extra info)
however non-key columns can still be functionally dependent on other non key columns

18
Q

give an example where third normal form can help solve the problem

A

if you have several friends who go to the same school, and you enter the school’s street address along with each of them, you would not only be duplicating the data but cause potential problems such as for instance if the school moved and changed its address, you would have to go back and change it everywhere.

19
Q

what does the third normal form state

A
  • -> no non-UID attribute can be dependent on another non-UID attribute
  • -> third normal form prevents transitive dependencies
  • -> a transitive dependency exists when any attribute in an entity is dependent on any other non-uid in that attribute
20
Q

give an example where the second normal form can help solve a problem

A

if you store a friend’s address in the recipe box you may not find it until you look up that recipe

21
Q

what is a prime attribute

A

An attribute, which is a part of the candidate-

key, is known as a prime attribute

22
Q

what is a non prime attribute

A

An attribute, which is not a part of the

prime-key, is said to be a non-prime attribute

23
Q

if we follow second normal form then ______________

A

If we follow second normal form, then every non-prime attribute
should be fully functionally dependent on prime key attribute.

24
Q

what is a transitive dependency

A

A transitive dependency exists when any attribute in an entity is dependent on any other non-UID attribute in that entity.

25
Q

what is another way of stating the third normal form

A

A non UID attribute cannot have attributes of their own

26
Q

what is a. superkey

A

it is a set of columns such that the value of that set of columns is unique across various rows