Data Types: by Winston Diep
Data Types: by Winston Diep
By Winston Diep
Text/String
It is any key on the keyboard. It can be used as text (Winston) or numbers (2345) or both such as a postcode(Br1 7ge). Numbers are stored as text if they are not to be manipulated e.g. add/minus. Also any number that starts with 0 such as telephone numbers are used as text/string.
Integer/Real
Integers are numbers that are used without decimal places. Real are numbers that are used with decimal places. Currency is stored as a real number since decimal places are used.
Boolean
Boolean fields can store on of only two possible values e.g. yes/no and true/false. They can be used to represent any questions with only two possible outcomes such as male/female.
Date/time
DD/MM/YY or DD/MM/YYYY is used to describe the date.