0% found this document useful (0 votes)
23 views

Lesson 6 Data Types

The document discusses various data types used in databases for an applied computing course, including date-time, number, character, text, and their uses. It outlines common data field types like numeric, date, dollar, boolean, and describes data types such as integers, floating point numbers, characters, date-time, bytes, and strings of characters. Spreadsheet functions are also mentioned that can assist with manipulating data through sorting, filtering, statistics, and charts.

Uploaded by

Sougey
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
23 views

Lesson 6 Data Types

The document discusses various data types used in databases for an applied computing course, including date-time, number, character, text, and their uses. It outlines common data field types like numeric, date, dollar, boolean, and describes data types such as integers, floating point numbers, characters, date-time, bytes, and strings of characters. Spreadsheet functions are also mentioned that can assist with manipulating data through sorting, filtering, statistics, and charts.

Uploaded by

Sougey
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 14

Mr McCaskill

VCE Applied Computing


Introduction

• Data Types
Data Types
Data Types
For SAC 101 you will use the following Data types with databases:
• Date-time
• Number
• Character, and
• Text (String)

Spreadsheet functions:
• Assist in manipulating the data:
• Sort
• Filter
• Using statistics, and
• Charts (graphs).
Data Types

Q1. Define the term ’Data type’ and explain how ‘data type’s
relate to data visualisations.

List the main examples of ‘data types’ that are used in


databases.

Applied to fields within a database:


• Text (e.g. Name, Job, Street, City)
• Number (e.g. Money, Hours, Rates, Age)
• Date / Time (e.g. Birth Date, Start Time)
• Boolean (e.g True or False)
Common data field types
Q2. Briefly outline the following ‘Data types’:
Common data field types
Data types
• Numeric:
• Fixed Decimal Places:
• certain numeric values that need to be formatted with a fixed number of
decimal places.
• Date:
• can be made to display in different ways:
• dd/mm/yy
• dd-mm-yyyy
• 12 or 24 hour clock (Date / Time)
– a variation of date where you can show time to minutes and
seconds if necessary.
• Dollar (Currency):
• $ symbol is displayed: it defaults to .00 after the value.
• Boolean:
– True / False
• can be displayed as words or as check or tick boxes to make data entry
more efficient.
Data Types - Integers

• a subset of numbers without a fractional (or decimal)


component, and
• are used to represent whole numbers
• have often “short” and “long” formats
• short Integer format can store values from 1 to
2,147,483,647
Data Types – Floating Point

• are numbers that are too small or too big to be represented as integers
• decimal numbers
• the number of digits before and after the decimal point is not fixed
• represented in scientific notation:
442019.54
= 4.4201954 x 105
= 4.4201954 E5
Data Types – Character
includes alphanumerical text:
• Letters
• Numbers
• Spaces
• symbols, and
• Punctuation
• are used in fields that do not require mathematical calculations:
• names
• Address
• telephone numbers
• and postcodes
Examples: A, B, a, b 1,2,3 * & ^
Data Types – DateTime

In Australia we usually use dd/mm/yyyy


Data Types – Bytes

• is a sequence of 8 bits
• represents a character of alphanumerical data (a number or
letter)
• is a basic unit of measurement in information storage:
• data is stored in a digital format - a group of 0’s and 1’s
(binary digits - bits)
• a bit is the smallest piece of data in a computer
• computers use bytes, which are composed of 8 bits.
Data Types – String of Characters

• A series of symbols or values, character string or binary string


• Can allow for different lengths of string
• 255 characters is a common maximum string length
• Used to describe:
• Phone numbers
• Postcodes, and
• street addresses are strings that include numbers.
• We do not perform mathematical calculations upon string data,
Examples: - John and (03) 9123 4567

You might also like