DATABASE THEORY Flashcards

1
Q

Databases?

A
  • A database is a collection of data
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is a set of data stored in?

A
  • ## Stored in a TABLE for example information about all of the learners in a school
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is a single item of data stored in?

A
  • Stored in a RECORD, for e.g. information about one learner
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What do the columns in a table store?

A

Store data in table store categories called FIELDS, for e.g. Name, Address, Gender, Date of birth

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

PRIMARY KEY?

A
  • Each table in a databse should have a primary key
  • This is a unique piece of data which identifes one record
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

FOREIGN KEY?

A
  • This is the primary key in a different table and creates a RELATIONSHIP
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Data types used in databases?

A

Text - Characters (letters, numbers, and symbols)
Number - numerical value
Date/times - Dates and times
Boolean - Yes/no also known as true/false

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