Professional Documents
Culture Documents
Database
Database
Data type
Data is raw facts and figures.
Data on its own has no meaning.
Some examples:
d2d4
wig
B2.2
456
Logical or Boolean
Data stored in Boolean form can only be one of
two available values.
Think of a light switch- its on or of
E.g. yes/no, true/false, 1/0, m/f
Alphanumeric
Is any combination of letters, numbers and
symbols (@#|\/>< etc.)
This data type is also known as a string or text.
Examples:
4987 is a lot to pay for a badger
DL61 ABC
I like fish
@*!#
Real
A real number is one which has decimal places.
Examples:
3.1234
11.23
25.654
Integer
Integer numbers are whole numbers, no bits, and
no decimal places.
E.g.
6
9999
-20
Date
Dates can be stored in many diferent forms.
In the UK we write the date in the form
DD/MM/YYYY e.g. 31/12/2014.
In the US, they use the form MM/DD/YYYY e.g.
12/31/2014.
E.g. 05/02/04, 22/11/2006, 12/23/1999