Lesson 1 PowerPoint
Lesson 1 PowerPoint
Management
Database design and concepts
1
Data in a till slip…
FIELD
Business name
Address
Tel no
Fax no
Vat no
Licence number
Item
Number of Item
Mass
Prize per mass
Prize
Non taxable
Total number of items
Balance due
2
Data type…
FIELD Datatype
Business name Text
Address Text
Tel no Text
Fax no Text
Vat no Text
Licence number Text
Item Text
Number of Item Number
Mass Number
Prize per mass Currency
Prize Currency
Non taxable Yes/No
Total number of items Number
Balance due Currency
3
Field size…
FIELD Datatype Field Size
Business name Text 40
Address Text 120
Tel no Text 10
Fax no Text 10
Vat no Text 12
Licence number Text 20
Item Text 30
Number of Item Number Byte
Mass Number Single
Prize per mass Currency
Prize Currency
Non taxable Yes/No True/False
Total number of items Number Integer
Balance due Currency
4
Categorize data …
FIELD Datatype Field Size
Business name Text 40
Address Text 120
Tel no Text 10
Fax no Text 10
Vat no Text 12 Business Items
Licence number Text 20 Business name Item
Item Text 30
Address Number of item
Number of Item Number Byte
Mass Number Single Tel no Prize
Prize per mass Currency Vat no Total number of items
Prize Currency
Fax no Mass
Non taxable Yes/No True/False
Total number of items Number Integer Licence number Prize per mass
Balance due Currency
5
Compare with other till
slips…
6
Add extra fields /
categories…
Business Items Amount
Business name Item Balance due
Address Number of item Taxable value
Tel no Prize Tax value
Vat no Total number of items Non taxable value
Fax no Mass
Licence number Prize per mass
7
Convert to a database
Business Items Amount
Business name Item Balance due
Address Number of item Taxable value
Table
Tel no
Vat no
Prize
Table Table
Tax value
Total number of items Non taxable value
Fax no Mass
Licence number Prize per mass
8
Convert to a database
TABLE
Great Brak Spar Great Brak River
0446202428
RECORD 4430210338 0446203264
FIEL
Checkers
FIEL
Fraai Uitsig Spar Klein
George
FIEL
Brak River
0446966001
RECORD 4280237357
FIEL 0446966333
0448028700 4420106777
FIEL
FIEL WCP/034510
D 0448019800 RECORD D
D 4010254938 D
D
Dis-Chem George
RECORD D
Wordsworth Books George RECORD
0448870224 4530135666 0448870226 2011/075223/23
9
Terminology with examples from a
Database: existing database
• a large collection / structured set of data
that is organized so that its contents can
easily be searched, accessed, managed,
updated and retrieved using a computer.
• Exists of table/s.
10
Terminology …
Table:
• a set of data elements organized and
grouped by common / same characteristics or
principles
• In vertical columns and horizontal rows.
• Each row represent a record and
• each column represent a field.
11
Terminology …
Record:
• A set of related data of a single entity.
• Exists of a number of fields.
Primary key:
Unique field to identify records
• No duplicate values in this field
• Cannot be empty
12
Terminology …
Field:
• The smallest part of data that can be
addressed.
13
To summarize
14