DATA PROCESSING LESSON NOTE GRADE 11
DATA PROCESSING LESSON NOTE GRADE 11
Data Structure
A data model describes the structure of the data within a given
domain and, by implication, the underlying structure of that domain
itself.
Data Organisation
A data Model also describes how to organize data using a database
management system.
Hierarchical model
In a hierarchical database, data is organized into an upside-down
tree-like structure, implying a single upward link in each record to
describe the nesting, and a sort field to keep the records in a
particular order in each same-level list. Hierarchical structures were
widely used in the early mainframe database management systems.
Network Model:
This model organizes data using two fundamental construct, called
records and sets. Records contain fields, and sets define one-to-
many relationships between records: one owner,many members.
Relational Model
The relational model or relational data base model is based on first-
order predicate logic. Its core idea is to describe a database as
acollection of predicates over a finite set of predicate variables,
describing constraints on the possible values and combinations of
values.
Object-Oriented Model
The object relational model is similar to relational database model,
butobjects, classes and inheritance are directly supported in
database schemas and in the query language. An object-relational
database can be said to provide a middle ground between relational
databases and object-oriented databases (OODBMS)
Star Schema
The star schema is the simplest style of data warehouse schema.
Thestar schema consists of a few “fact table” (possibly only one,
justifyingthe name) referencing any number of dimension tables”.
The starschema is considered an important special case of the
snowflake schema.
To load Ms Access
Click on the Start Menu
Point to All program
Point to Microsoft Once
Click on Microsoft offce Access
Creating Database
1. From the displayed window, click on blank database.
2. By the right hand side of the windows, where the arrow is
pointing in the picture-screen above, click inside the file name text
box and type the desired database name.
3. Click on Create command button. A database with the name
given will be created. Files are created as tables in the database
Creating a file
1. Click on Create menu and select Table
2. At all Tables tab, right click on any of the table.
3. Select design View In the Save As dialog box, type a desired table
name (e.g. Student Table)in the Table Name text box and click ok.
Creating Database
Generally, creating database using any DBMS entails the following
basicsteps:
Define the Database Structure
The database structure specifes the type of database organization
that should be used. If the relational form is selected, the database
structure will include RDBMS, structure of table, number of
rows, number of columns, the key, and relationship of the database
etc.
Specify Field Type
When a database is being created, all fields are set to accept a
particulartype of input by specifying a field type. A field type is also
known as a Data type. The essence of a data type is to prevent a
wrong input from being stored in a database (i.e. database
integrity). Usually the name of a data type varies with DBMS but
portrays a general meaning.
NORMAL FORM
The normal form (NF) of relational drable it is. Each table has a
“Highest Normal Form”(HNF): byatabase theory provide critical for
determining a table’s degree of vulnerability to logical
inconsistencies and anomalies. The higher the normal form
applicable to a table, the less vulnerable. By defininition, a table
always meets the requirements of its HNF and all normal forms
lower than its HNF; also by definition, a table fails to meet the
requirement of any normal form higher than its HNF.
Normal form theory deal with how to reduce the amount of
redundancyof data within a given table. Each normal form
represents a level. To satisfy each the requirements for a certain
level, the requirements for the previous level must be met. To reach
the optimal normal form for thetables within a database, the creator
starts with a large list of all the data that is to be held in the
database, and then works through the normal forms until he can no
longer break the data down into smaller table.
KEY
A key is an attribute or field that can be used to identify a record in
adatabase table or file.The primary Keyis a unique attribute that can
be used to identify arecord in a database table. For Example, in the
student database tableabove, the attribute that is unique to identify
each record is the Student-ID or RegNo.
CONCEPTS OF FOREIGN KEY
A foreign key is a field in a relational table that matches a candidate
key of another table. A foreign key (FK) is a column or combination
of columns that is used to establish and enforce a link between the
data in two tables. You can create a foreign key by defining a
foreign key constraint when you create or modify a table. The
foreign key can beused to cross-reference table. The foreign key
identifies a column or set of columns in one (referencing or child)
table that refers to a column or set of column in another (referenced
or parent) table. The columns in the child table must reference the
columns of the primary key or other super key in the parent table.