2.3 Databases Flashcards

1
Q

What are the 5 database datatypes you need to know?

A

Number: Used for both integers and real numbers
Text: Used for both strings and chars
Date or Date/Time: Used for the date and/or time
Boolean: Yes/No or True/False
Currency: Used for money e.g. $, £

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

What is a field?

A

One piece of information about an object e.g. student name (column)

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

What is a record?

A

A collection of fields about the same object e.g. one student (row)

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

What is a table?

A

A collection of records about the same entity e.g. students

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

What is a primary key?

A

A field that uniquely identifies each record. No duplicates e.g. StudentID

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

What is a database?

A

A persistent and structured collection of data

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

How many fields are in the table?

How many records are in the table?

A

How many fields are in the table? 5

How many records are in the table? 8

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

Which field is suitable as a primary key and why?

A

Show Number because it uniquely identifies each show/record

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

State an appropriate data type for the field PCID

State an appropriate data type for the field Screen Size

State an appropriate data type for the field Price

A

State an appropriate data type for the field PCID: Text

State an appropriate data type for the field Screen Size: Number

State an appropriate data type for the field Price: Currency

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

Which field is suitable as a primary key and why?

A

PCID because it uniquely identifies each stock item/record

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

State an appropriate data type for the field PCID

State an appropriate data type for the field Screen Size

State an appropriate data type for the field Price

A

State an appropriate data type for the field PCID: text

State an appropriate data type for the field Screen Size: number

State an appropriate data type for the field Price: currency

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