Microsoft Access: Unit 10 Using Database Applications

Download as ppt, pdf, or txt
Download as ppt, pdf, or txt
You are on page 1of 14

Microsoft Access

Unit 10
Using Database Applications
Database content

Database
e.g. Student.mdb

Tables Queries Forms Reports


Overview
 A database is used to store data about:

 People
 Products
 Samples in a lab
 Cars
 etc
Columns are
Tables ‘Fields’

Rows are
‘Records’
Queries
Main Table
QUERY = D.O.B. >March 1985
and first name family name and
D.O.B

QUERY = Name Campbell and


first and family name only
Forms
 Made for easier data entry
Single record displayed

Record selection
Reports

Print out of selected


records.

Reports can be customised


as needed!
Characteristics of a database
 All records must be unique, one field must
be designated as the

PRIMARY KEY

No two rows can be identical


Some Primary Key Examples
MOTOR VEHICLES
 Car registration numbers.
 Car insurance policies Relational Database
if interconnected
 M.O.T. certificates
 Tax discs
HEALTH SERVICE
 Patients
Relational Database
 Drugs
if interconnected
 Hospitals
 Doctors
Tables Have Two Views!
Datasheet view
For direct data
entry, or you can
use a ‘Form’.

Design view
Dictates what can
be entered in
columns
Number definitions:
INTEGERS (no fractions/decimal places)

Byte — For integers that range from 0 to 255.


Storage requirement is a single byte.

Integer — For integers that range from -32,768 to


+32,767. Storage requirement is two bytes.

Long Integer — For integers that range from


-2,147,483,648 to +2,147,483,647. Storage
requirement is four bytes.
Number definitions:
RATIONALS (With Fractions and Decimals)
Single — For numeric floating point values that
range from -3.4 x 1038 to +3.4 x 1038 and up to
seven significant digits. Storage requirement is
four bytes.
Double — For numeric floating point values that
range from -1.797 x 10308 to +1.797 x 10308 and
up to 15 significant digits. Storage requirement
is eight bytes.
Decimal — For numeric values that range from
-9.999... x 1027 to +9.999... x 1027. Storage
requirement is 12 bytes.
Field Types: Validation Rules
Validation Rule (simple) Validation Meaning

<> 0 Entry must be a nonzero value.

1000 Or Is Null Entry must be blank or greater


than 1000.
Like "A????" Entry must be 5 characters and
begin with the letter "A".
>= #1/1/96# And <#1/1/97# Entry must be a date in 1996.

A ‘Null’ means that an entry is blank.


AND NEXT!

It’s your time to have a go!

ROOM L012

You might also like