Databases and SQL Flashcards

1
Q

What is a database?

A

A database is a computerised store of organised data

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

What is a Field?

A

Categories for each piece of data in a table- the columns.

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

What is a record?

A

Data for one object person or place- a row

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

What is a primary key?

A

A unique identifier for each record

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

What is the difference between a flat file database and a relational database?

A

Al flat file database only has one table and a relational database is made up of more than one table. The tables link through the foreign key.

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

What is a foreign key?

A

The linking field in a second table which connects the first table to the second .

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

Why is data redundancy a problem?

A

Data redundancy means that the same data is repeated, which makes the database much larger than it needs to be.

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

Why is data inconsistency a problem?

A

If data is stored multiple times, what if it isn’t always the same?
The more redundant data there is, the more likelihood that errors are introduced and that some of the data will be inconsistent.

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

Why is a relational database more efficient than a flat-file database?

A

It is made up of more than one table which removes the problem of data redundancy (repeated data)

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

Why might the primary key for one table, not be the same primary key in another table?

A

Each entry only appears once, unique identifier for each set of data

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

What are examples of places that would use a database?

A

Schools- stores students information such as age, year group, form group, parents phone numbers etc
Banks- stores information such as passwords/pins, how much money is taken out/put in etc.

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

Problems of data inconsistency

A

Duplicated data results in the database being innaccurate and this creates differences in the data stored

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