Слайд 1Introduction
to databases
Grade 11
Слайд 2Overview
What a database is
How it fits into the broader information
management picture
What the different parts of a database are
Слайд 3What is a database?
A database is a storage space
for content / information (data)
Слайд 4But what is data? And where is it now?
Data is
factual information about objects and concepts, such as:
measurements
statistics
You can find it in:
spreadsheets
folders
lists
piles of papers on your desk
Слайд 5What does “managing information” mean?
Making information work for us
Making
information useful
Making information easily accessible and integrated with the rest
of our work
Слайд 6Managing as re-organising
We often need to access and re-sort data
for various uses. These may include:
Creating mailing lists
Writing management reports
Generating
lists of selected news stories
Identifying various client needs
Can you add to the list?
Слайд 7Managing as re-processing
The processing power of a database allows it
to:
Sort
Match
Link
Aggregate
Skip fields
Calculate
Arrange
Слайд 8Databases everywhere!
Because of the versatility of databases, we find them
powering all sorts of projects:
A web site that is capturing
registered users
A client tracking application for social service organisations
A medical record system for a health care facility
Your personal address book in your e-mail client
A collection of word processed documents
A system that issues airline reservations
Слайд 9Exercise 1: Understanding data and data-gathering
Think of Facebook
What data does
it gather?
What do you think it does with the data
it gathers
Слайд 10Different parts of a database
Fields
Records
Entity
Attributes
Queries
Reports
Слайд 11Fields (Tuples)
Database storage units
Generic elements of content
Слайд 12Exercise 2: Breaking down content into fields and field types
Thinking
of Facebook again. List the field names and then think
about what field type it may be. E.g. integer, string, etc
Слайд 13Records and Tables
A simple table showing fields (columns) and records(rows):
And
as part of an MS Access database table:
Слайд 17Time to think
How do you think table are sorted?
Слайд 18Keys
Sort key also known as the primary key
If two tables
are connected they must be connected through a key, known
as a foreign key.
Слайд 19Exercise 3: Entities, Attributes and Tuples
Think of a hospital, can
you think of what tables (Entities) it may contain?
Слайд 24One to One Relationships
Occur when each entry in the first
table has one, and only one, counterpart in the second
table.
One-to-one relationships are rarely used because it is often more efficient to simply put all of the information in a single table.
Слайд 25One to Many Relationships
Most common type of database relationship. They
occur when each record in the first table corresponds to
one or more records in the second table but each record in the second table corresponds to only one record in the first table.
For example, the relationship between a Teachers table and a Students table in an elementary school database would likely be a one-to-many relationship, because each student has only one teacher, but each teacher may have multiple students.
Слайд 27Queries
Queries are the information retrieval requests you make to the
database
Your queries are all about the information you are
trying to gather
Слайд 28Reports
If the query is a question...
...then the report is
its answer
Reports can be tailored to the needs of
the data-user, making the information they extract much more useful
Слайд 29Information first
Database second
Слайд 30Exercise 4
Think of school student management system.
Create a two tables
within that system (Students and Courses) showing the fields and
field types they would contain
How would you link the tables?
Слайд 31Conclusion: Database - the information tool
A powerful tool for managing
information
Information first - database second