14.02 Database Structure + 14.03 Data Types + 14.04 Primary Keys Flashcards
What is the most simple sort of database?
A table.
eg:
Name: Phone #: Birthday:
John 07849 225439 June 18th
James 07715 152982 September 4th
Jen 01604 845099 July 4th
How does the structure work?
- The rows in the table are called the ‘records’
- The columns are called the ‘fields’
What is an ‘alphanumeric’ data type?
Made from any character or symbol on the keyboard. eg:
Hello!
What is an ‘integer’ data type?
A whole number that does not have a decimal place. eg:
100
What is a ‘real’ data type?
A number that does contain decimal places. eg:
1.11
What is a ‘date/time’ data type?
A data type that holds a date and/or time. eg:
05:00 18/06/2017
What is a ‘boolean’ data type?
Data that has two possible values. eg:
yes/no
true/false
What is a ‘Primary Key’?
Each record in the data table is associated with a number, commonly found in the first field (reading left to right). Often used when the first field would be a name or something that in a larger database is lightly to occur more than once. The number in the first field, giving each record in the line an ID, is called the Primary Key.