Databases Flashcards

1
Q

What is a database?

A

A database is a structured way to store data so that it can be retrieved using queries

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

What do database fields meed to have?

A

A data type

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

What are flat file databases

A

Databases that store a single table of data in a text file

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

Advantages and Disadvantages of flat file databases

A

Ad- Easy to set up
Dis-Hard to manage larger data sets
Data repeated more often leading to more inconsistencies and redundancies making searching and sorting more difficult

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

What is a primary key?

A

A file that is unique for each record in the table

Eg.ID number

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

What is data repeated in a table know as?

A

Redundancy

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

What is the same data written in different ways in the same field (eg. ‘Five’ and ‘5’) called?

A

Inconsistency

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

What is a relational database?

A

A database with multiple tables, with links know as relationships

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

Advantages and disadvantages of relational databases?

A

Ad- Less repetitions in the same table reducing inconsistencies and data redundancy.Easier to manage larger sets of data
Dis-Initially harder to set up

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

What is a foreign key?

A

A field in a table that references the primary key of another table

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

Relationship types

A

One to one (eg one owner to one dog)
Many to many (eg many books to many authors)
One to many (eg many kids to one teacher)

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