0% found this document useful (0 votes)
3 views11 pages

Database Resource Management

The document discusses data resource management, emphasizing the importance of quality data for organizational success. It outlines various data types, components of databases, and the significance of data mining, while also explaining the structure and advantages of databases. Additionally, it covers database models, relationships between entities, and the relational model as a widely adopted approach in database management.

Uploaded by

Brice Nyonga
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views11 pages

Database Resource Management

The document discusses data resource management, emphasizing the importance of quality data for organizational success. It outlines various data types, components of databases, and the significance of data mining, while also explaining the structure and advantages of databases. Additionally, it covers database models, relationships between entities, and the relational model as a widely adopted approach in database management.

Uploaded by

Brice Nyonga
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 11

ICT

DATA RESOURCE MANAGEMENT


COMPETENCES
Identify the various data types. Describe
components of a database. Explain data
mining.

Introduction
Today’s organizations cannot survive or succeed without quality data about their internal operations and
external environment. Organizations typically make use of databases (both internal and external) to store
data related to their operations.
Data resource management is an activity that applies information systems technologies to the task of
managing an organization‘s data resources to meet the information needs of their business stakeholders.

1. What is data?
Data are pieces of information or fact related to the object being considered. For example, examples of
data relating to an individual would be the person‘s name, age, height, weight, ethnicity, hair, colour, and
birthday. Data is not limited to the facts themselves, as pictures, images, and files are also considered data.
Each data is associated with an attribute that tells a computer system how to interpret its value. This
attribute is called a data type. Understanding data types ensures that data is collected in the preferred
format and that the value of each property is as expected. The following are the common Data types:

Data type Description Example

Integer It is used to store numbers without a fractional component. -245; 0; 520

Floating point It is used to store numbers that may have a fractional component. -32.345; 234.002

Character It is used to store a single letter, digit, punctuation mark, symbol or ‗A‘; ‗7‘; ‗?‘; ‗ ‘
blank space

String It used to store a sequence of characters or text ―Hello john‖

Boolean It is used to stored data with only two possible values. True or false; 1
or 0; yes or no.

Date It is used to store date generally a date in the YYYY-MM-DD format 2021-10-03

Time To store a time generally in the hh:mm:ss format. 09:30:20

Date time Stores values containing both date and time together in the YYYY- 2021-10-23
MM-DD hh:mm:ss format. 11:20:55

2. What is a database?
A database refers to a collection of logically related information organized so that it can be easily accessible,
managed, and updated. Databases are generally accessed electronically from a computer system and are
usually controlled by a database management system. (DBMS). The database administrator (DBA) is the
individual responsible for managing the databases, including database security, access control, backup, and
disaster recovery.

a. Types of database in an organization

1
©MR. NYONGA HERMAN B.
ICT
Operational: store detailed data needed to support the business processes and operations of a
company.
Distributed: databases that are replicated and distributed in whole or in part to network servers at a
variety of sites.
External: refer to databases external to an organization and generally accessed over the internet and owned
by other organizations.
Internal: typically include operational databases and data warehouse

Data warehouses contain data collected from several sources, and the data contained within are generally
not used for routine activities. Instead, data warehouse are usually used for business intelligence purposes.

b. Components of a Database
The five major components of a database are:
Hardware: refers to physical, electronic devices such as computers and hard disks
Software: refer to set programs used to manage and control the database and includes the database
software, operating system, network software.
Data: refer to raw facts and information that need to be organized and processed to make it more meaningful.
Procedures: refer to instruction used in the DBMS and encompass everything from instructions to
setup and install, login and logout.
Database Access Language: It is a language used to write commands to access, update and delete data
stored in a database.

3. Data Organization Terms and Concepts


Some few key terms that are useful to help one understand data more, particularly the relation between data
and databases are:
Bit: Smallest unit of data; binary digit (0, 1).
Byte: Group of 8 bits that represents a single character.
Character: single alphabetic, numeric or other symbol. Field:
group of words or related characters and numbers. Record:
collection of related fields
Table: collection of related records with a unique table name
File: group of related records.
Database: integrated collection of logically related data elements. (file, tables)

Figure 4: Data hierarchy

2
©MR. NYONGA HERMAN B.
ICT
Remark:In Traditional file processing, data were organized, stored, and processed in independent files of data
records. Some problems of traditional file processing are:
Data Redundancy: duplicate data requires an update to be made to all files storing that data.
Lack of Data Integration: data stored in separate files require special programs for output making ad hoc
reporting difficult.
Data Dependence: programs must include information about how the data is stored so a change in storage
format requires a change in programs.

Note: Data mining refers to the process of analyzing massive volumes of data from different angles in order to
identity relationships between data and transforms them into actionable information.

3
©MR. NYONGA HERMAN B.
ICT

DATABASES
COMPETENCES
Identify Models of databases.
Use a database application to create a simple relational database.
Populate a simple database.
Create simple queries to demonstrate data integrity and consistency.

Introduction
Organizations work on vast amount of data and information on daily bases thus, there is need for data
and information to be organized logically. These data may not make meaning if not organized into an
appropriate structure. A database is application software for such a task and is one of the core/main parts
of most/all applications/software in use today.
A database is a structured collection of data in a computer system which allows for arranging, modifying,
and extracting information easily in different logical orders. It is a tool that stores data, and lets you create,
read, update, and delete the data in some manner. The management of these data can be computerized or
not.
A computerized database is a database that stores and manages its data by the use of application software
called database management system (DBMS) in the computer.
A non-computerized computer is a database that files are grouped in folders or envelops and stored in
drawers or filing cabinets. Both types of database have advantages and disadvantages. An advantage for
one is probably a disadvantage to the others.

Note: Data are raw facts that have no meaning. It needs treatment (processing) to become useful
(information).

Figure 5: Data, Information, and Knowledge

1. The structure of a Database


Within the database, the data are organized into storage containers called tables. Tables are made up of
columns and rows. In a table, columns represent individual fields and rows represent records of data. The
following are the basic database terms.
Table 1: structure of database

Serial No Registration No Surname FirstName Sex Class

1 123 Shey Ndim Female Form 4

2 456 Eliza Joy Female Form 4

3 789 Didier MC Male Form 5

4 012 Cecil Pride Female Form 5

This table is made up of six fields (columns) i.e. serial number, registration number, surname, first
name, sex and class and four records (rows). 4
©MR. NYONGA HERMAN B.
ICT
A table is the database object that contains the basic data or information to be stored about an entity of
the database. For example, the registration of students in a school form a database called student table
which is a database entity.
A field or (attribute) represents one related column of a table and is the smallest logical structure of
storage in a database. It holds one piece of information about an entity or a subject represented by the
table. For example, in the above table we have the following fields; registration no, surname, firstname,
sex, and class.
A record or tuple is a collection of multiple related fields that can be treated as a unit or a record is a
row of the table for a database which contains a collection of attributes related to an entity (such as
student or a person) of the database. For example, information from the field‘s registration no, surname,
firstname, sex, and class for a particular student form a record.
A query is the database tool that allows to retrieve information from one or more tables based on a set
of search conditions you define using the table fields. Queries are covered in more details later.
Forms are Access tools that users can create to make data entry in database tables easier. Entering data
directly into a table can be difficult if there is a lot of information to enter. Like an Excel spreadsheet, an
Access table is essentially a screen filled with blank rows where a user enters records. Forms, however,
provide users with an easy-to-read interface where they can enter table data.
Reports: It is an effective tool that gives you way to analyse and present data using a specific
layout. The text can be formatted in an Access report, just like it can be in Word documents.
Key field or Primary Key: it is a field or a collection of fields in a database whose value can be
used to distinguish one record from another. E.g. in the table above, registration no. can be used as the
key field.
Foreign Key: a foreign key is a column or group of columns in a relational database table that provides
link between data in two tables. It acts as a cross-reference between tables because it references the
primary key of another table thereby establishing a link between them.
NOTE: a primary key is always distinguish from the other key by a (*) on it or is underlined.
Entity: it is a single data item; persons, things, places or events (a table‘s name).

NB: Typical data is logically organized as follows; characters, fields, records, files and database.
Characters are the most basic logical data elements.
File is a collection of related records. E.g. a table can be referred to as a file.

2. Advantages and disadvantages of database


Advantages of database:
 There is less data inconsistency since each data item is stored
in fewer locations. It enables querying and faster searches.
 Data is independent of application.
 It is easier to maintain the confidentiality of the information.
Disadvantages of database:
 It requires trained personnel to design, implement, maintain and work on.
 A total system failure can have a severe negative impact on the establishment.

3. Database Applications
Databases are widely use because it forms an essential part of almost all
organizations/software‘s/enterprises today. Here are some representative applications: Banking,
Universities/schools, Business, Manufacturing, organizations, enterprises, government, hospitals,
Facebook, Google, Twitter, etc.

5
©MR. NYONGA HERMAN B.
ICT
4. Data Type for database
A data type determines the type of data that can be stored in a column of field of a table in the database.
Although many data types are available, the followings are the most commonly used data types:
Table 2: Available Data type for database in MS Access

Data type Description Size


Text Alphanumeric data, letters, numbers, Up to 255 characters
symbols and specials characters
Memo Alphanumeric data, support rich-text Store up to 2G, display up to
formatting (bold, italic, bullets lists...) 65 535 characters
Number Positive or negative values that can be used Up to 16 bytes of data
in arithmetic calculations
Data/Time Date and time information 8 bytes
Currency Monetary values, not rounding during 8 bytes
calculation.
Auto number Automatically generate by the computer Up to 16 bytes
when a new record is added
Yes/No Boolean values (true or false) 1 bit
data 1=true 0=false

Remark:
A database file that consists of a single data table is called a flat-file database. Flat-file databases are
useful for certain single user or small group situations, especially for maintaining lists such as address
list or inventories. Data that is stored, managed, and manipulated in a spreadsheet is similar to a flat-file
database.
Disadvantages of flat file database
Redundant data: that is repeated information in the table.
Errors on input: typographical errors occur each time is entered.
Problems with updating data
Problems with modifying data

5. Database models
A database model is a type of data model that determines the logical structure of a database. It
fundamentally determines in which manner data can be stored, organized and manipulate. The most
popular example of database model is the relational model which uses a table-based format. Other
examples of database models include: flat file model, hierarchical model, object-oriented model, network
model, Entity- relation model and multi-dimensional model.

A. Entity Relationship Model (ER):


An entity relationship model is a diagrammatic representation of the relationship that exists between
entities.
An entity is a ―thing‖ or ―object‖ in the real world that is distinguishable from all other objects. For
example, each person in an enterprise is an entity. An entity has a set of properties or attributes, and the
value(s) for some set of properties may uniquely identify an entity.
A relationship is an association among several entities. For example, we can define a relationship between
the entity students to the entity teacher in a secondary school. Each student has one teacher but each
teacher has many students.
The ER diagram is used to represent database schema. The following are use in ER diagram:
A rectangle represents an entity set.
An ellipse represents an attribute. 6
©MR. NYONGA HERMAN B.
ICT
A diamond represents a relationship.
Lines represent linking of attributes to entity sets and of entity sets to relationship sets.

Entity sets Attributes Relationship


i. Example of ER model:

Figure 6: ER diagram for entities student and class

In the ER diagram shown above the two entities are STUDENT and CLASS. Two simple attributes which
are associated with the STUDENT are Roll number and the name. The attributes associated with the entity
CLASS are Subject Name and Hall Number. The relationship between the two entities STUDENT and
CLASS is Attends.

Exercise:
Observe the above ER diagram and answer the following questions.
1. How many entities are on the diagram?
2. What are the attributes of each entity?
3. What is the relationship between them?
ii. Types of Relationship between entity
You share many relationships with members of your family. For instance, you and your mother are related.
You have only one mother, but she may have several children. You and your siblings are related. You
may have many brothers and sisters and, of course, they'll have many brothers and sisters as well. If you're
married, both you and your spouse have a spouse each other but only one at a time. Database relationships
are very similar in that they're associations between tables (entities of the DB).
Even though a relationship may involve more than two entities, the most commonly encountered
relationships are binary, involving exactly two entities. Generally, such binary relationships are of three
types and called cardinality: one-to-one, one-to-many and many-to-many.

a. One-to-one Relationship (1:1)


One-to-one is where one occurrence of an entity relates to only one occurrence in another entity, e.g. if
a man only marries one woman and a woman only marries one man, it is a one-to-one (1:1) relationship.

b. One-to-many Relationship (1:M)


A one-to-many relationship is where one occurrence in an entity relates to many occurrences in another
entity. For instance one manager manages many employees, but each -employee only has one manager,
so it is a one-to many (1: M) relationship.
7
©MR. NYONGA HERMAN B.
ICT

c. Many-to-many Relationship (M:M)


In many-to-many relationship, one record in a table can be related to one or more records in a second table,
and one or more records in the second table can be related to one or more records in the first table. For
example, one teacher teaches many students and a student is taught by many teachers.

B. Relational Model
The relational model is a lower-level model. It uses a collection of tables to represent both data and the
relationships among the data. Its conceptual simplicity has led to its widespread adoption; today a vast
majority of database products are based on the relational model. Designers often formulate database
schema design by first modeling data at a high level, using the E-R model, and then translating it into the
relational model.
The software used in a relational database is called a relational database management system
(RDBMS). The relational model is based on the mathematical concept of a relation, which is physically
represented as a table.
Note: Referential integrity: It a property of a relational database that enforces valid relationships between
tables such that no foreign key can contain a value that does match a primary key in the corresponding
linked table.
i. Terminology
There are different set of terms used to designate the tables, the columns and rows of the relational
model. The following table summarized it.

Relational terms relation tuple Attribute

Alternative 1 Table row Column

Alternative 2 File Record Field

Figure 7: relational model

A relation is a table with columns and rows An


attribute is a named column of a relation A tuple
is a row of a relation.

ii. Transforming the ER model to Relational model


To implement the database, it is necessary to use the relational model. There is a simple way of mapping
from ER model to the relational model. There is almost one-to-one correspondence between ER constructs
and the relational ones. Here,
Entity name = Name of the relation or table. Attributes of
ER diagram = Column name of the table.
Example: The E-R model in section A (i) is converted to a Relational model
Here we have two entities CUSTOMER and ORDER. The relationship between CUSTOMER and
ORDER is one-to-many and the relationship is Submit.
8
©MR. NYONGA HERMAN B.
ICT
The tables can then be represented in the relational model as:
Customer (Customer-ID, Customer-name, Customer-Address)
Order (Order-ID, Order-Date)
And can read in a relational way as:
CUSTOMERSubmitsORDER (Order-ID, Order-Date, Customer ID, Customer-name, Customer-Address)
In the relation above, the primary key CUSTOMER ID in the CUSTOMER relation becomes a foreign key
in the ORDER relation.
Normalization of a database: It is a process in a relational design that breaks down data in to record groups
in accordance with a series of so-called normal forms for efficient processing by eliminating redundancy
and improving data integrity.

C. Other type of database models


Hierarchical database model: Uses nodes to link and structure fields and records. Entries may have
one node with several child nodes in a one-to-many relationship.
Object-Oriented Database (OOD): Data is organized using objects classes, entities, attributes and
methods.
Network Database: This is similar to hierarchical except that a child node may have more than one
parent in a many-to- many relationship.
Multidimensional Database: Extend two dimensional relational tables to three or more dimensions
(hyper cube)
Remark: The description of the database includes the table structures and the rules that will be
followed. The description is called a scheme. The schemas are stored in a data structure called the data
dictionary.
Data dictionary is a collection of descriptive information about data and objects in a database i.e. a
computerized-base catalogue or directory containing metadata that is data about data. It contains a list of
all tables in the database, the number of records in each table, and the names and types of each field.

6. Database Management Systems (DBMS)


A DBMS is software that is used to create, modify, and extract information from a database. The main idea
with a DBMS is that all the data is kept centrally and only authorized users can have access to data through
the DBMS.
A DBMS is a general-purpose software i.e. not application specific. A DBMS consists of:
A part for collection of interrelated and persistent data. This part of DBMS is referred to as database
(DB).
A set of application programs used to access, update, and managing data. This part constitutes the
management system (MS).

A. Features of a DBMS
The features of a DBMS are as follows:
Queries: to extract data in the database using language like the Structured Query Language
(SQL);
forms, reports; (see section 1 for definition)
Models define rules and standards for all data in the database
Data mining has to do with using software to search through data from many sources looking for
connections.

B. The main objectives of DBMS:


9
©MR. NYONGA HERMAN B.
ICT
Control of data redundancy: the database approach attempts to eliminate the redundancy by
integrating the files so that multiple copies of the same data are not stored.
Data consistency: If a data item is stored only once in the database, any update to its value has to be
performed only once and the new value is available immediately to all users.
Improved data integrity: Database integrity refers to the validity and consistency of stored data.
Integrity is usually expressed in terms of constraints, which are consistency rules that the database is
not permitted to violate.
Improved security: Database security is the protection of the database from unauthorized users. The
access that an authorized user is allowed on the data may be restricted by the operation type (retrieval,
insert, update, delete).
Increased concurrency: In some file-based systems, if two or more users are allowed to access the same
file simultaneously, it is possible that the accesses will interfere with each other, resulting in loss of
information or even loss of integrity. Many DBMSs manage concurrent data- base access and ensure such
problems cannot occur.
Improved backup and recovery services: modern DBMSs provide facilities to minimize the amount of
processing that is lost following a failure.\

Examples of DBMS are: Oracle, Postgres SQL, Sybase, MySQL, Microsoft Access, SQL, DB2,
Open Office Base, etc.

7. Database languages
A particular language that has emerged from the development of the relational model is the Structured
Query Language (SQL). Over the last few years, SQL has become the standard relational database
language.
Objectives of SQL
Ideally, a database language should allow a user to:
Create the database and relation structures,
Perform basic data management tasks, such as the insertion, modification, and deletion of data from
the relations,
Perform both simple and complex queries.

Data-Definition Language:
We specify a database schema by a set of definitions expressed by a special language called a Data-
Definition Language (DDL). DDL defines the database structure and controls access to the data.
Data-Manipulation Language:
A data-manipulation language (DML) is a language that enables users to access or manipulate data as
organized by the appropriate data model. Its functions are:
The selection or retrieval of information stored in or from a table; The
insertion of new information into a table;
The deletion of information from a table;
The updating or modification of information stored in a table;

EXERCISES
A database of students is to be set up with the following fields:
FamilyName, OtherName, StudentID, DateOfBirth, DateOfEntry, CurrentClass, CurrentSchoolYear,
EmailAddress.
Select a data type for each field.
Which fields should be validated and which fields should be verified?
Decide the validation rules for those fields which should be validated.
Which field is best for the primary key?
10
©MR. NYONGA HERMAN B.
ICT
Choose a suitable format for the StudentID.
Build a database with at least 10 records. Include all your validation checks.
Run a query to print OtherNames, FamilyName, and EmailAddress in alphabetical order of family
name.
Run a query to select all the students of class four with their StudentID.

11
©MR. NYONGA HERMAN B.

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy