0% found this document useful (0 votes)
29 views7 pages

What Are Data Types

This document discusses different data types that can be stored in a database including logical/boolean, alphanumeric, real, integer, date, currency, and multimedia data types. Logical/boolean data can only have two values like true/false or yes/no. Alphanumeric data includes letters, numbers, and symbols and is also known as text or strings. Real numbers contain decimal places, integer numbers do not have decimal places, and dates can be stored in different formats like DD/MM/YYYY or MM/DD/YYYY. Currency data automatically includes monetary symbols and decimal places, while multimedia data types allow images, sound clips, and video clips to be stored.

Uploaded by

api-276920924
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
29 views7 pages

What Are Data Types

This document discusses different data types that can be stored in a database including logical/boolean, alphanumeric, real, integer, date, currency, and multimedia data types. Logical/boolean data can only have two values like true/false or yes/no. Alphanumeric data includes letters, numbers, and symbols and is also known as text or strings. Real numbers contain decimal places, integer numbers do not have decimal places, and dates can be stored in different formats like DD/MM/YYYY or MM/DD/YYYY. Currency data automatically includes monetary symbols and decimal places, while multimedia data types allow images, sound clips, and video clips to be stored.

Uploaded by

api-276920924
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 7

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.
Examples include:
YES

TRUE

NO

FALSE

Alphanumeric
Alphanumeric data 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

I like fish
DL61 ABC
@*!#

Alphanumeric
Alphanumeric or text/string is used
to hold telephone numbers.
In a computer, telephone numbers
are stored as text.
This is because the telephone
number contains a leading zero and
spaces.

Real
A real number is one which has
decimal places.
Examples:
3.14175

18.01

12.4

Integer
Integer numbers are whole numbers,
no bits, no decimal places.
Examples:
5
-54
999999

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.
Examples:
15/08/19
99

2009/11/
30

12/31/19
99

Other Data Types


Currency Software will automatically add
or $ to data and include decimal places. E.g.
22.99.
Images/Sound Bites/Video Clips Some
databases will allow an images, sound and
video clips to be stored.
For example a photo of a criminal and their
fingerprints on a crime database.

You might also like