Database
Database
What is database?
•A database is a structured collection of data so it can be searched, sorted,
filtered and analysed quickly
In the example below, each row represents the data stored about a single customer
(the customer’s record)
•In the customer table, there are 3 records
•Each record is divided into fields (CustomerID, FirstName, LastName, DOB and
Phone Number)
•Data in a database can be any type of data including text, images, videos, sound
•Databases use tables to store data
Terms
Text/Alphanumeric This data type allows letters, special characters like spaces and punctuation and numbers to be entered into a field NG321AE
Character This allows single characters to be entered into a field. Characters can be any alphanumeric value and can be lowercase or uppercase A
Boolean This data type can be used in fields where there are only two possible options. Data is stored as a 1 or 0 in the database but can be used to represent True/False
True/False or Yes/No or checked/unchecked
Date/Time Only dates or times can be entered into a field with this type. A format for the date/time can also be assigned to the field 180855
Setting Data Types and Sub-Types
• You can set appropriate data types to fields
• You can set sub-types of numeric data including
percentages, the number of decimal places
• Setting Display Formats
• You can set the display format of Boolean/logical
fields to either
• Yes/No
• True/False
• Checkbox
• You can set the display format of date/time data