Databases basics Flashcards

(18 cards)

1
Q

What is a table?

A

A structure where data is organised in rows and columns

Tables are used to store data about related items, e.g. customers, products, sales.

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

Define a record.

A

A collection of data items, which may be of different data types, all relating to the individual or object that the record describes.

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

What is a field in a database?

A

Part of a record designed to hold a single data item of a specified type.

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

What is a Primary Key?

A

A field that uniquely identifies an individual record in a table.

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

What is a Foreign Key?

A

A primary key in one entity which is included in another entity to link the two tables.

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

Define a database.

A

A (large) collection of data items and links between them, structured in a way that allows it to be accessed by a number of different application programs.

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

What is an Autonumber data type?

A

A number field, where the database chooses the next available number automatically.

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

Give examples of Autonumber.

A
  • ID field
  • Customer Number
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is a Text data type used for?

A

To store a string of characters up to a certain field size.

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

Provide examples of Text data type.

A
  • Name
  • Email Address
  • Phone Number
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What does the Date and Time data type store?

A

A specific date and time, which can be formatted to display in different ways.

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

List examples of Date and Time data type.

A
  • Date of Birth
  • Transaction Date
  • Login time
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What does the Number data type store?

A

A numeric value, which could be an integer or a decimal number.

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

Give examples of Number data type.

A
  • Age
  • Number of Likes
  • Total number of pupils
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What is the purpose of the Currency data type?

A

To store the value of a specific amount of money, with a set currency symbol.

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

List examples of Currency data type.

A
  • Price
  • Discount Amount
  • Total Profit
17
Q

What does the Yes / No data type represent?

A

Stores only one of two options: Yes or No, also known as a Boolean.

18
Q

Provide examples of Yes / No data type.

A
  • Any Medical conditions?
  • Do you consent to your photograph being used?
  • Do you want to receive the newsletter?