0% found this document useful (0 votes)
6 views16 pages

L1 Tables Rrlationships Keys Types CREATEINACCESS

The document discusses structured data and databases. It explains key database concepts like tables, records, fields, primary keys and relationships. It provides step-by-step instructions for creating a sample student database in Microsoft Access to demonstrate these concepts.

Uploaded by

Matthew Lavelle
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)
6 views16 pages

L1 Tables Rrlationships Keys Types CREATEINACCESS

The document discusses structured data and databases. It explains key database concepts like tables, records, fields, primary keys and relationships. It provides step-by-step instructions for creating a sample student database in Microsoft Access to demonstrate these concepts.

Uploaded by

Matthew Lavelle
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/ 16

Structured Data -

DATABASES
Objectives
• Understand what structured data is

• Understand key features of DATABASES:


• Tables
• Records
• Fields
• Keys
• Relationships
• Queries
DATABASE
• An way of organising (STRUCTURING) data do that the data can easily
be accessed, managed and updated
Microsoft Access – creating a database
• Open Microsoft Access

• Click on BLANK DESKTOP DATABASE


• Click on DESIGN VIEW

• Save your database with the name STUDENTS


• Add 5 fields:
• First name
• Surname
• Date of Birth
• Email address
• Mobile phone number

• Select suitable DATA TYPES


• First name - AUTONUMBER
• Surname – SHORT TEXT
• Date of Birth – SHORT TEXT
• Email address – DATE/TIME
• Mobile phone number – SHORT TEXT
• Change the view to DATASHEET VIEW

• Now add at least 3 students to the TABLE:


• Change the VIEW back to DESIGN VIEW

• Find the PRIMARY KEY icon from the DESIGN tab

• Spot which FIELD in your TABLE is chosen automatically as the PRIMARY


KEY

• PRIMARY KEY – ensures that data in that field cannot be REPEATED and
is UNIQUE
• Create a new table called SUBJECTS

• Add these FIELDS


• Make Subject Name the PRIMARY KEY
• This means a Subject Name is UNIQUE

• Add this data to the Subjects TABLE:


• Create a 3rd table called CLASSES

• Add these FIELDS:

• DO NOT ADD ANY DATA!

• Now CLOSE all 3 TABLES


• Click on RELATIONSHIPS from the DESIGN tab

• DOUBLE CLICK on ALL 3 table names to add them

• Now rearrange the tables so they are this order:


• Click on ID in the STUDENTS table and drag it over to the StudentID in
the Classes table

• Tick all check boxes

• This creates a RELATIONSHIP


between the ID and Student ID
• Click on Subject Name in the SUBJECTS table and drag it over to the Subject in the
Classes table

• Tick all check boxes

• You should now have created 2 RELATIONSHIPS

• RELATIONSHIPS = links between associated fields


• If a Student ID was changed it would automatically change in both tables
• If a Student ID was deleted from the Student table then it would automatically be deleted from
the Classes table as well.
Try it
• Create classes for all 3 students

• Then edit a Subject Name – see it changes in both Subject and Classes
tables

• Delete a student from the Student table – see if their classes also get
deleted.
HOMEWORK
• Create a Poster/Slideshow/Graphic that includes:

• Explanations in your OWN words of


• TABLE
• FIELD
• RECORD
• PRIMARY KEY
• RELATIONSHIP

You might also like