DATABASE THEORY Flashcards
1
Q
Databases?
A
- A database is a collection of data
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
3
Q
What is a single item of data stored in?
A
- Stored in a RECORD, for e.g. information about one learner
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
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
6
Q
FOREIGN KEY?
A
- This is the primary key in a different table and creates a RELATIONSHIP
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