Professional Documents
Culture Documents
Week Week One Ending 23rd Time: 1:45-2:30 PM Class Size: Sex: Mixed
Sept., 2022 15
Date Duration: 45
19th September 2022 Minutes
Topic Types of data models
Objective By the end of the lesson, the learners should be able to;
s 1. Explain the term data model
2. State the types of data models
3. Appreciate the need for data models
4. Enumerate the levels of data modeling
5. Understand the various approaches to data modelling
Correctly and satisfactorily using the instructional resources provided as guide.
Instructio Charts, Microsoft Access package
nal
Resource
s
Instructio Discussions and Discovery, Questioning, Demonstration, Visual imagery
nal
Techniqu
es
Entry The facilitator introduces the lesson by reviewing the learner’s knowledge on the last
Behaviou lesson. The learners have learned concepts of data bases in tenth grade.
r
Instructio Step 1: Introduction
nal A data model is the organization of data elements and the standard on how the data
Procedur elements relate to one another
e
A data element is any unit of data defined for processing; for example, ACCOUNT
Step 1 NUMBER, NAME, ADDRESS and CITY. A data element is defined by size (in
characters) and type (alphanumeric, numeric only, true/false, date, etc.). A specific
set of values or range of values may also be part of the definition.
This is to say a data element is defined by the data type
ACTIVITY 1
Write five data types of elements contained in a data model
Data Properties
Some important properties of data for which requirements need to be met are
1. Relevance: The usefulness of the data in your business
2. Clarity: The availability of a clear and shared definition for data
3. Consistency: The compatibility of the same type of data from different
sources
4. Timeliness: The availability of data at the time required and how up to date
that data is
5. Accuracy: How close to the truth the data is
6. Completeness: How much of the required data is available
Step 2 7. Accessibility: Where, how and to whom the data is available (security)
8. Cost: The cost incurred in obtaining the data and making it available for use
Types of data models
1. Flat model: It is a simple model in which the database is represented as a
table consisting of rows and columns. To access any data, the computer has
to read the entire table. This makes the modes slow and inefficient
2. Hierarchical model: This model organizes the data in a tree structure. The
hierarchy starts from the root which has root data and then it expands in the
form of a tree adding child node to the parent node. This model easily
represents some of the real-world relationships like sitemap of a website.
Example: We can represent the the site map of a website in the following
way
In the above diagram, the entities are Teacher and Department. The attributes
of Teacher entity are Teacher_Name, Teacher_id, Age, Salary,
Mobile_Number. The attributes of Department entity are Dept_id,
Dept_name. The two entities are connected using the relationship. Here, each
teacher works for a department.
6. Object-oreinted Data Model: The real-world problems are more closely
represented through the object-oriented data model. In this model, both the
data and relationship are present in a single structure known as an object. We
can store audio, video, images, etc in the database which was not possible in
the relational model (although you can store audio and video in relational
database, it is advised not to store in the relational database). In this model,
two or more objects are connected through links. We use this link to relate
one object to other objects. This can be understood by the example given
below.
In the above example, we have two objects Employee and Department. All
the data and relationships of each object are contained as a single unit. The
attributes like Name, Job_title of the employee and the methods which will
be performed by that object are stored as a single object. The two objects are
connected through a common attribute i.e the Department_id and the
communication between these two will be done with the help of this
common id
ACTIVITY 2: Discussion
Which of the models explained above would you prefer? Give reasons
Approaches to data modelling
There are three levels or approaches to data modelling. They include:
1. Conceptual data model: It identifies the high-level user view of data, and
establishes the entities and the relationship between them
2. Logical data model: this model is in between the conceptual and physical
data model. It describes the structure of the data elements and the
relationship between them. It describes the data in detail as much as possible
without regard to how they will be physically implemented in the database
3. Physical model: This is a schema or framework for how data is physically
stored in a database. It
Teacher Mr. Njoku Callistus O. Subject: Data Class: Grade Age: 14+
Processing 11
Week Week Two Ending 2nd Oct, Time: 1:45-2:30 PM Class Size: Sex: Mixed
2022 15
Date Duration: 45
28th September, 2022 Minutes
Objectives By the end of the lesson, the learners should be able to;
1. Create tables
2. Create forms
3. Create queries
4. Create reports
5. Appreciate the need for database tools
Correctly and satisfactorily using the instructional resources provided as guide.
Instructional Charts, Microsoft Access package
Resources
Entry The facilitator introduces the lesson by reviewing the learner’s knowledge on the last lesson. The topic
Behaviour was introduced in the last class
A database is an organized collection of data generally stored and accessed electronically. A database
can contain many tables, each containing information about a particular subject. Some examples of
Step 1 databases include: Microsoft Access, SQL, Oracle, CoucheDB
A table is a collection of data about a specific topic. It can be seen like a folder in a file cabinet. A table
consists of records and fields
A record is a collection of related fields e.g the name, sex, age, address and other details of a student
make up his record
A field refers to a specific item in a table e.g serial number, name, sex, date, year of enrollment etc
Every item within the same field must be of the same data type
Data Types
Some commonly used data types in databases include
1. Numbers
2. Characters
3. Alphanumeric
4. Memo
Step 2 5. Time stamp
6. Boolean
Database Objects
A database object is any defined object in a database that is used to store or reference data
Databases in Microsoft Access are composed of four objects: tables, queries, forms, and reports.
Together, these objects allow you to enter, store, analyze, and compile your data however you want.
Forms
A form is a database object that you can use to enter, edit, or display data from a table or a query. You can
use forms to control access to data, such as which fields of data are displayed
Queries
A query refers to the action of instructing the database to return some (or all) of the data in your database.
In other words, you are querying the database for some data that matches a given criterion
For example, you might want to see a list of individuals whose first name is David
Reports
A report is a formatted and organized presentation of data
Reports enable you to format your data in an attractive and informative layout for printing or viewing on
screen. Reports are often used to present a big-picture overview, highlighting main facts and trends
Summary Database tools such as query, report and form help in better organization and management of a database.
The main aim of data modeling is to support the development information systems. It does this by
providing the definition and structure of data
Teache Mr. Njoku Callistus O. Subject: Data Class: Grade Age: 14+
r Processing 11
Week Week Three Ending 9th Oct, Time: 1:45-2:30 PM Class Size: 15 Sex: Mixed
2022
Date Duration: 45 Minutes
5th October, 2022
Entry Behavior The facilitator introduces the lesson by reviewing the learner’s knowledge on the last lesson. The topic
was introduced in the last class
Step 1: Significance of data model
Instructional
1. The main aim of data models is to support the development of information systems by
Procedure
providing the definition and format of data. A data model clearly determines the structure of
data.
2. Data models are often used as an aid to communication between the business people
defining the requirements for a computer system and the technical people defining the
design in response to those requirements.
3. Data models describe structured data for storage in data management systems such as
relational databases. They typically do not describe unstructured data, such as word
processing documents, email messages, pictures, digital audio and video.
4. A data model is the medium which project team members from different backgrounds and
with different levels of experience can communicate with one another.
Summary The significance of data models can never be over emphasized. A data model not only improves the
conceptual quality of an application, it also lets you leverage database features that improve data
quality.
https://docs.oracle.com/middleware/12212/bip/BIPDM/GUID-2632C713-0689-42FB-B081-
References
8940F0BBCE72.htm#BIPDM126
Teacher Mr. Njoku Callistus O. Subject: Data Class: Grade Age: 14+
Processing 11
Week Week Four Ending 16th Oct, Time: 1:45-2:30 PM Class Size: Sex: Mixed
2022 15
Date Duration: 45
12th October, 2022 Minutes
A Normal Form is a rule that determines the degree of consistency of a database table. This
Step 1 means checking the relational database redundancy and ensure data dependency (When
information stored on the same database table uniquely determines other information stored on
the table. E.g. Name and other attributes depending on Reg. no. for uniqueness in a table).
Databases have to go through the process of normalization. This is to ensure that all data
entered are accurate, and has no redundancy.
Normalization is carried out through the use of normal forms. For the scope of this lesson, we
are going to dwell on the first three normal forms
Solution
Reg no Name Subject
Step 3 101 Oduenyi English
101 Oduenyi Maths
103 Prince Econs
102 Hannah French
102 Hannah Literature
To put this table in normal form, we have to remove [Purchase_Location] from the table. WE
will have two tables thus
TABLE_PURCHASE TABLE_STORE
Customer_ID Store_ID Store_ID Purchase_Location
1 1 1 Lagos
1 3 2 Aba
2 1 3 Owerri
3 2
4 3
The functional dependency has been removed. In each of the tables, there is fully dependency
on the primary key
Evaluation 1. Explain the term Normal Forms
2. Define Normalization
3. State the problems involved with tables in 1st NF
Summary Relational databases are normalized in order to eliminate redundancy and functional
dependency. When tables are normalized, the data becomes reliable and easy to organize. The
first and second normal forms that we have seen have rules which lead a relational database to
normalization
Assignment State the conditions needed for third NF to be satisfied
References 1. https://www.studytonight.com/dbms/database-normalization.php
2. https://stackoverflow.com/questions/5610226
3. Milestone for data processing pg17
Teacher Mr. Njoku Callistus O. Subject: Data Class: Grade Age: 14+
Processing 11
Week Week Five Ending 23rd Oct, Time: 1:45-2:30 PM Class Size: Sex: Mixed
2022 15
Date Duration: 45
19th October, 2022 Minutes
Topic Continuous Assessment Test (CAT)
Teacher Mr. Njoku Callistus O. Subject: Data Class: Grade Age: 14+
Processing 11
Week Week Six Ending 30th Oct, Time: 1:45-2:30 PM Class Size: Sex: Mixed
2022 15
Date Duration: 45
26 October, 2022
th
Minutes
Topic Normal Forms II
Objectives By the end of the lesson, the learners should be able to
1. Identify determinants on a database table
2. Convert database tables to 3rd normal form
3. Explain the concept of foreign keys
4. Appreciate the need for higher order of normal forms
Correctly and satisfactorily using the instructional resources provided as guide
Instructional Resources Charts, slide shows, MS Access Package
Instructional Techniques Discussions and Discovery, Questioning, Demonstration, Visual imagery
Entry Behaviour The facilitator introduces the lesson by reviewing the learner’s knowledge on the last lesson.
Instructional Procedure Step 1
A determinant in a database table is any attribute that you can use to determine the values
assigned to other attribute(s) in the same row
Step 1
Consider the following table
STUDENT
Student_id First_name Last_name Date_of_birth
1 Belinda Michael Feb 15, 1990
2 Fritz Gerald June 12 2001
3 Jack Nicholas September 3, 1980
In this case, the field student_id determines the remaining three fields. The name fields do
not determine the student_id because the school may have more than one student with the
same first and/or last name. Similarly, the DOB field does not determine the student_id or the
name fields because more than one student may share the same birthday.
ACTIVITY I
Bring the table below to third normal form
BOOK_DETAIL
Book_id Genre_id Genre_type Price
1 1 Fishery 20.00
2 2 Sports 32.67
3 1 Fishery 54.13
4 3 Gardening 45.00
5 2 Sports 54.60
Step 3
Hint:
1. Identify the determinants
2. Break down the table into two
Teacher Mr. Njoku Callistus O. Subject: Data Class: Grade Age: 14+
Processing 11
Week Week Seven Ending 6th Time: 1:45-2:30 PM Class Size: Sex: Mixed
Nov, 2022 15
Date Duration: 45
2 November, 2022
nd
Minutes
Teacher Mr. Njoku Callistus O. Subject: Data Class: Grade Age: 14+
Processing 11
Week Week Eight Ending 13th Time: 1:45-2:30 PM Class Size: Sex: Mixed
Nov, 2022 15
Date Duration: 45
9th November, 2022 Minutes
Definition of terms
Entity: An entity is a person, place, concept or thing about which the business needs data
Attributes: Attributes are descriptive properties of an entity. Examples include name, age,
salary, price, etc.
Relationship: This is an association between entity types. A relationship captures how
entities are related to one another. Relationships can be thought of as verbs linking two or
more nouns. In the diagram above, the relationship between Student and College is Study
Steps in ER Modelling
1. Understand the problem situation
2. Identify the entity types
3. Determine and refine the relationships among the entity types
4. Represent the problem in the language of ER Modelling
Evaluation 1. Define the terms entities, relationships and attributes
2. What is used to represent an ER Model?
Summary The main components of an ER Model are Entities and the relationships between them.
These entities are described by attributes. Relationships can be thought of as verbs.
Assignment 1. Identify objects around us as entity sets. Explain the relationships that exist between
them
2. Define a relational model database
Reference 1. https://beginnersbook.com/2015/04/e-r-model-in-dbms/#:
2. Milestone for data processing pg23
Teacher Mr. Njoku Callistus O. Subject: Data Class: Grade Age: 14+
Processing 11
Week Week Nine Ending 20th Time: 1:45-2:30 PM Class Size: Sex: Mixed
Nov, 2022 15
Date Duration: 45
16th November, 2022 Minutes
Topic Relational model I
Objectives By the end of the lesson, the learners should be able to
1. Define a relational model
2. Explain how data is represented
3. Create and modify data in a relational model
4. Manipulate and query data
5. Design a relational database model
Correctly and satisfactorily using the instructional resources provided as
guide
Instructional SQL software, charts, PowerPoint presentation
Resources
Instructional Discussions and Discovery, Questioning, Demonstration, Visual imagery
Techniques
Entry Behavior The facilitator introduces the lesson by reviewing the learner’s knowledge
on the last lesson.
Instructional Step 1: Introduction
Procedures A relational database is a representation of how data is stored in a relational
database
Teacher Mr. Njoku Callistus O. Subject: Data Class: Grade Age: 14+
Processing 11
Week Week Ten Ending 27th Nov, Time: 1:45-2:30 PM Class Size: Sex: Mixed
2022 15
Date Duration: 45
23rd November, 2022 Minutes
Integrity constraints
Integrity constraints are a set of rules which ensure that the data insertion, updating, and other
processes have to be performed in such a way that data integrity is not affected.
It is used to maintain the quality of information
Centralized rules: Integrity constraints are defined for tables and are stored in the data
dictionary (see "Overview of the Data Dictionary"). Thus, data entered by all
applications must adhere to the same integrity constraints. If the rules change at the
table level, then applications need not change. Also, applications can use metadata in
the data dictionary to immediately inform users of violations, even before the database
checks the SQL statement.
Flexibility: when loading data, you can disable integrity constraints temporarily to
avoid performance overhead when loading large amounts of data. When the data load is
complete, you can re-enable the integrity constraints.
Examples of commonly used integrity constraints: NOT NULL, Unique Key, Primary Key,
Foreign key, Check
Evaluation 1. Define data integrity
2. Explain the types of integrity constraints
Summary A database has to have integrity, so that data can be manipulated and stored effectively. For this
to happen, integrity constraints are used
Assignment 1. Explain the different file organization methods
References 1. https://en.wikipedia.org/wiki/Data_integrity
2. https://www.javatpoint.com/dbms-integrity-constraints#:~:text=Integrity%20constraints
%20are%20a%20set%20of%20rules.&tex
3. https://docs.oracle.com/cd/E11882_01/server.112/e40540/datainte.htm#CNCPT33334
Teacher Mr. Njoku Callistus O. Subject: Data Class: Grade Age: 14+
Processing 11
Week Week Eleven Ending 11th Time: 1:45-2:30 Class Size: Sex: Mixed
Dec, 2022 PM 15
Date
7th Dec, 2022 Duration: 45
Minutes
Topic Revision