normalisation Flashcards

1
Q

what are the alternative names for a table ?

A

entity and relation

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

what are the alternative names for a record ?

A

row entity instance

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

what is the alternative name for a field

A

attribute, column, and property

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

what is a relational datebase

A

the databases consist of many tables that contain s data that is related in some way.
these databases are called relational databases and are managed by the Database Management Systems (DBMS).

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

what is a primary key

A

a field in a table that uniquely identifies each record in the table

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

what is an easy way to make a primiary key

A

add an extra auto-numbered field to make each record unique

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

what is a super key

A

a comnination of fields in a table which uniquely identify each row

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

what is a candidate key

A

they are minimal super-keys and they are possible options for primary key s

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

what is normalisation

A

the process of representing a problem in the real word as a set of tables

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

what does normalisation avoid

A
repeating groups 
data redundancy 
anomalies :
  update 
  insertion
  deletion 
complex queries
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

what is data redundancy ?

A

expanding the primary key produces data redundancy is when one field has two values like a name and a surname in the name field

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

what is an update anomaly

A

when the same data needs to be updated in more than one place

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

what is deletion anomaly

A

when deletion cause unecessary loss of data

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

what is an insertion anomaly

A

when records are added that do not satisfy the primary key requirements

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

what are the characteristics of first normal form

A

no repeating groups

choose a primay key

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

what are the characteristics of second normal form

A

relation is in 1NF

no partial dependencies

17
Q

what are the characteristics of third normal form

A

relation is in 2NF and no transitive dependencies

18
Q

what is a partial Dependency

A

when a field’s walue is dependent on only part of composite key

19
Q

what is transitive dependency

A

when a field is dependent on a non- key field

20
Q

what is derived data

A

when you use field to calculate antoher like deriving a person’s age from their date of birth

21
Q

what is duplicate data

A

when a record has the same value for a field as another record

22
Q

what is atomic data

A

each value of a field should store a single datqa item and should no be combined

23
Q

what is referential Integrity

A

the idea that you can have data that refers to other data that does not exist

24
Q

what is an example one to one relationship

A

an example would be one teacher to a register class

25
Q

what is an example of a one to many relationship

A

would be a house to students there is one house and many students

26
Q

what is an example of many to many

A

that would be doctor to patient

27
Q

how to identify different tables

A

each table shold respresent an entity or a subject then each table should have a primary key. Then link the table using the primary and foreig keysthe rule is that the table on the many side gets the primary key of the one side of the relationship

28
Q

give a summary of the relationship rules

A

one to one: put both fields in the same table
one to many: add a foriegh key to the table on the many side which the primary key of the table on the one side
many to many: Create a new link table with a combination primary key using the primary key of the other two tables

29
Q

how do you ensure regerential Integrity?

A

we need to ensure queries cannot be performed that will violate the integrity of the database