Relational Databases (SQL) Flashcards

1
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
2
Q

What is a record?

A

A row (sideways)

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

What is a field?

A

A column (horizontal)

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

What is a field name?

A

The name of the field/column at the top of the table

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

Why are fields used?

A

To store a specific piece of information - name or address

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

What does a record do?

A

Uses fields to store details about a specific item

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

What a foreign key?

A

A field that references the primary key of another table

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

What is a flat-file database?

A

A database which stores all the data in one table - easy to set up and understand

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

What are relational databases?

A

Databases made up of multiple tables linked together using primary and foreign keys

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

What is data redundancy?

A

Having the same piece of data stored in multiple places

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

What is data inconsistency?

A

When the same data exists in different formats in multiple tables - typo or incorrect format

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