Databases Flashcards

1
Q

What is a data dictionary?

A

It is a simple table that defines the basic organisation of a database - the structure of the database. It contains info for managing the database but not the actual data itself.

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

What does a data dictionary contain?

A

Table names, field names, data types and keys

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

What does a length check do?

A

This forces the data to be a specific number of characters long

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

What does a range check do?

A

This forces the data to lie within a certain range of values

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

What does a restricted choice do?

A

It forces the user to select from a list of suitable options

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

What does a presence check do?

A

Checks that important data is present.

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

What does a unique check do?

A

Ensures that the data entered in the field is different from any other.

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

What is a relational database?

A

It stores the info in more than one table. The tables are linked by relationships.

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

What is a primary key?

A

This is a field that uniquely identifies each record in a table. the primary key does not allow duplicates and the field should never be left blank.

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

What is a foreign key?

A

They enable related tables to be linked together to form a relationship. The primary key of one table will be the foreign key in another.

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

What is a compound key?

A

When one field is not enough to uniquely identify a record, a compound key combines more than one field to make a unique key.

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

State the three kinds of relationships between tables.

A

One-to-one, one-to-many, and many-to-many.

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

What does the GROUP BY operation allow you to do?

A

It allows you to group the data.

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

What does the COUNT operation allow you to do?

A

To count the number of records in the table.

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

What does the operation SUM allow you to do?

A

It allows you to add the values in a numeric field.

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

What is a query?

A

It is a set of instructions that can extract specific info from one or more database tables.