microsoft access 2002 by ian cole lecturer in ict
Post on 21-Dec-2015
216 views
TRANSCRIPT
Microsoft Access 2002
By Ian Cole
Lecturer in ICT
Access Overview
Database Theory: Creating a Database:
Designing and creating a relational database.
Familiarisation with the Access screen. Opening,viewing and creating tables. Imputting Data. Sorting and filtering tables. Creating reports.
Session Plan Introduction. Relational Theory.
Normalisation. Microsoft Access.
Tables Forms Queries
Self – Directed Workbook
Introduction What is a Database?
Telephone Book. Patient Records A Timetable. Student Records Systems.
Different types of Database! hierarchical database (1960 &
1970’s) relational databases (Access)
Relational Theory
Hello there! My names Sid
Hi call me Pid
Would you like to have
relations
Mmmm!!Yes
please
Relational Theory
Hello Son
Mummy!
Daddy!
My baby!!!
Relational Theory
Is Excel a Relational Database?
Database Normalisation
Codd's Law a set of 13 rules
used to determine if a database can be considered a Relational Database.
It’s all my
fault
Database Normalisation Normalisation is to reduce data redundancy and the
chances of data becoming inconsistent. A table in a relational database is said to be in normal
form if it satisfies certain constraints - Codd's original work defined three forms but there are now five generally accepted steps of normalisation.
First Normal Form eliminates repeating groups by putting each into a separate table and connecting them with a one-to-many relationship (1NF).
Second Normal Form eliminates functional dependencies on a partial key by putting the fields in a separate table from those that are dependent on the whole key (2NF).
Third Normal Form eliminates functional dependencies on non-key fields by putting them in a separate table. At this stage, all non-key fields are dependent on the key, the whole key and nothing but the key.
Fourth Normal Form separates independent multi-valued facts stored in one table into separate tables.
Fifth Normal Form breaks out data redundancy that is not covered by any of the previous normal forms.
Database Normalisation Cole’s Law
Don’t duplicate data in a database or it won’t work properly.
Structured Query Language
SELECT "column_name" FROM "table_name“
WHERE "condition"
Never mind SQL
I keep thinking BLOODY HELL!!!!!
Structured Query Language
SELECT "column_name" FROM "table_name“
WHERE "condition"
Example:SELECT RedFROM P tableWHERE city = ‘London’
Microsoft Access
Tables Different views Records Fields
Columns Primary Key
Microsoft Access
Tables Different views Records Fields
Columns
Forms
Microsoft Access
Tables Different views Records Fields
Columns Forms Sorting – temporary Queries – Permanent (new table)
Microsoft Access
Database Window Always open
Toolbars Contextual No need to save
Workbook Ask questions at any time