Unit 5 - Databases Flashcards

0
Q

Put Records, Table, Field and Characters in the correct order of what each is made up of?

A

A Table is made up from Records
Records are made up of Fields
Fields are made up of Characters

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

Name the 6 key aspects to a database?

A
Field names
Fields
Table
Records
Data items
Primary key
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is a table?

A

A structure of rows and columns that contain data

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

What’s is a record?

A

A single row of the table holding data of a single item or event

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

What is a field?

A

An individual data item within a record

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

What is a primary key?

A

It’s a field in a table that allows each record to be uniquely identified

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

What are the two types of primary key?

A

Simple

Compound/Composite

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

What the difference between a simple and a compound primary key?

A

A simple primary key is one which is made up of a single field
A compound primary key is one that combines the content of mor than one field to produce a unique value

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

What is a secondary key?

A

Field that is identified as being suitable for indexing data

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

What is a foreign key?

A

It a key that allows tables to link together. The foreign key links to a primary key of another table

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

What is an entity?

A

A thing that can be distinctly identified

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

What are the three types of relationships?

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
12
Q

Which relationship should not be in a normalised database?

A

Many to many

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

Why is data normalised?

A

To reduce redundancy and inconsistency and easier to maintain

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

2 characteristics of 1NF?

A

Every data value in a field is atomic

No repeating values

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

Name the 4 checks for 1NF?

A

Is there a primary key?
Are the field names unique?
Are the repeating fields?
Is the data in the fields atomic?

16
Q

What are the rules of 2NF?

A

Must have been in 1NF

All non-key fields be found out by using the entire primary key?

17
Q

What happens in 3NF?

A

Table is split into multiple tables with only the fields that contain data on a topic

18
Q

What are the 5 advantages of normalisation?

A
Removes redundancy
Increases consistency 
Increases integrity
Easier to maintain
Flexibility for future changes
19
Q

What are the 3 disadvantages of normalisation?

A

Queries take longer and more usage
Structure makes it harder for reports
Historical data cannot be stored

20
Q

10 things from the data dictionary?

A
Table name
Field name
Field data type
Field length
Field value
Field validation
Table security
Keys
Indexes
Relationships
21
Q

What are the two types of queries?

A

Simple

Complex

22
Q

When should you use a simple query?

A

When 1 parameter needs to be searched for

23
Q

Name the three way to join parameter used in complex queries?

A

And
Or
Not