0% found this document useful (0 votes)
15 views33 pages

Lecture 1 IS099

Uploaded by

kimarodamian123
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)
15 views33 pages

Lecture 1 IS099

Uploaded by

kimarodamian123
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/ 33

Management of Database Systems

IS 099
Lecture 1: Database Concepts

Instructor: Dr. Herrieth Machiwa


COURSE GOALS
• Acquire basic understanding of database
• Define and edit tables
• Add, edit and search for data
• Create relationships between tables and query the contents
• Use criteria to customise a query and create a calculated field
• Create professional reports and data input forms
• Design and implement the database by using Microsoft Access.
RECOMMENDED READINGS
1. C. J. Date, An Introduction to Database Systems, 8 th edition, Addison - Wesley, 2003.
2. A. Silberschatz, H. Korth, and S. Sudarshan (2010) Database System Concepts.
6thedition, McGraw-Hill.
3. AtulKahat (2011), Introduction to database Systems, Pearson Education.
4. Ramez Elmasri and Shamkant Navathe (2010), Fundamentals of Database Systems.
Sixth Edition, Addison-Wesley.
ASSESSMENT MODE
Coursework Assessment (CA): 40%
• Assignments presentation:
• Test 1(week 7):
• Test 2 (week 13):
• Practical:
University Exam: 60%
LECTURE OUTLINE
• Introduction
• Data and Information
• Data management approaches
• Introduction of Database
• Types of database
• Advantages of database system over manual approach
• Why database?
• Database Application
Introduction

As the name of course suggests, database management system (DBMS) has two parts: Database and
Management System.

To find out what database is we have to start from data, which is the basic building block of any DBMS.

In computerized information system, data is the basic resource of the organization. So, proper organization and
management for data is very essential for organization to run smoothly.
Data and Information

Data is the raw facts, figures or statistics that can be recorded and that have implicit meaning. For example,
consider the names, telephone numbers, and addresses of the people you know.

The representation of facts ,concepts or instruction in a formal manner, which is suitable for understanding and
processing.

In any organization, it requires accurate and reliable data for better decision making, ensuring privacy of data
and controlling data efficiently.
Data can be represented in alphabets(A-Z, a-z),in digits(0-9) and using special characters(+,-.#,$, etc.). Example: 1,
Ravi, 19 etc.
 What is information?
Information is the processed data on which decisions and actions are based.

Information can be anything that is of significance to an individual or organization.

It can be defined as the organized and classified data to provide meaningful values. Example: “The age of Ravi is
19”
Data Vs information
What is the difference?
Data Information
-Data can be defined in many ways. -Information is data that have been
Information science defines data as organized and communicated in
unprocessed information. coherent and meaningful manner.

-Data is converted into information,


and information is converted into
knowledge.

-Knowledge; information evaluated


and organized so that it can be used
purposely.
DATA MANAGEMENT STEPS
Data management passes through the different levels of development along with the development in technology
and services.
Even though there is an advantage and a problem overcomed at each new data handling approach/level, all
methods or approaches of data handling are in use to some extent.
The major three approaches/ levels are:
1. Manual Approach
 In this approach, data storage and retrieval follows the primitive and traditional way of data/information handling
where cards and paper are used for the purpose. Typing the data on paper and put in a file cabinet. For example,
job application forms, funders reports, client intake forms.
Manual data handling
The data storage and retrieval will be performed using human labor.
This approach works well if the number of items to be stored is small.
Limitations:
-Prone to errors
-Data loss: due to damaged papers or unable to locate it
-Redundancy: multiple copies of the same data within the organization
-Inconsistency: modifications are not reflected on all multiple copies
-Difficult to update, retrieve, integrate
MANUAL DATA HANDLING CONT
-Difficult to compile the information regardless of data availability.
-Limited to small size information.
-Cross-referencing is difficult.

An alternative approach of data handling is a computerized way of dealing with the information. The computerized
approach could also be either decentralized or centralized base on where the data resides in the system.
File processing system
2. File Processing System (FPS)
After the introduction of computer for data processing to the business community, the need to use the device for
data storage and processing increase.

File based data handling approaches were an early attempt to computerize the manual filing system. There were,
and still are, several computer applications with file based processing used for the purpose of data handling.
File processing system cont
• In FPS, groups of records are stored in separate files. Each file is
Independent of another. Thus, this approach is the decentralized
computerized data handling method.
• Each file contained & processed information for one specific task.
• Files are designed by using programming languages.
• Programs are dependent on the files and vice-versa;
that is, when the physical format of the file is changed,
the program has also to be changed.
Example of FPS Scenario
Consider part of a savings-bank enterprise that keeps information about all customers and savings accounts.
To allow users to manipulate the information, the system has a number of application programs that manipulate the
files. System programmers wrote these application programs to meet the needs of the bank. New application
programs are added to the system as the need arises.
For example, suppose that the savings bank decides to offer checking accounts. As a result, the bank creates new
permanent files that contain information about all the checking accounts maintained in the bank, and it may have to
write new application programs to deal with situations that do not arise in savings accounts.
Thus, as time goes by, the system acquires more files and more application programs.
DISADVANTAGES OF FPS
Data redundancy and inconsistency: Data redundancy means duplication of data values i.e., the same
information may be written (duplicated) in several files. For example, the address and telephone number of a
particular customer may appear in a file that consists of savings-account records and in a file that consists of
checking-account records.
• This redundancy (duplication) makes wastage of time, money and storage space.
• It may lead to data inconsistency; that is different copies of the same data are not matching.
- For example, a changed customer address may be reflected in savings-account records but not elsewhere in the
system.
- Phone number of a customer is different in different files.
Disadvantages of FPS
Separation and isolation of data: Because data are scattered in different files, and the files are in different format.
That means, each program maintains its own set of data.
• Users of one program may be unaware of potentially useful data held by other programs. To make a decision , a
user might need data from two separate files.
• Writing new application program to retrieve/access data is difficult.
• Imagine the work involved if data from several files were needed.
Disadvantages of FPS
Difficulty data access: Suppose a bank officer needs to find out the names of all customers who live within a
particular postal-code area. The officer asks the data-processing department to generate such a list. Because the
designers of the original system did not anticipate this request, there is no application program on hand to meet it.
• There is, however, an application program to generate the list of all customers. The bank officer has now two
choices: either obtain the list of all customers and extract the needed information manually or ask a system
programmer to write the necessary application program.

 Thus, the conventional file processing system do not allow needed data to be retrieved in a convenient and
efficient manner.
Disadvantages of FPS
Atomicity: It is difficult to ensure atomicity in a file processing system. A computer system, like any other
mechanical or electrical device, is subject to failure. In many applications, it is crucial that, if a failure occurs, the
data be restored to the consistent state that existed prior to the failure. For example, transfer of funds from one
account to another should either complete or not happen at all. Otherwise, it will result in an inconsistent database
state.
Concurrent access anomalies: For the sake of overall performance of the system and faster response, many
systems allow multiple users to update the data simultaneously. In the file processing system it is not possible to
access a same file for transaction at same time. In such an environment, interaction of concurrent updates may result
in inconsistent data. Consider bank account A, containing $500. If two customers withdraw funds (say $50 and $100
respectively) from account A at about the same time, the result of the concurrent executions may leave the account in
an incorrect (or inconsistent) state.
Disadvantages of FPS
Security problems: There is no security provided in file processing system to secure the data from unauthorized
user access. For example, in a university, payroll personnel need to see only that part of the database that has
financial information. They do not need access to information about academic records. But, since application
programs are added to the file-processing system in an ad hoc manner, enforcing such security constraints is difficult.
Integrity Problems: The data values stored in the database must satisfy some integrity constraints. For example,
the balance of a bank account may never fall below a certain amount (say $25). Developers enforce these constraints
in the system by adding appropriate code in the various application programs. How ever when new constraints are
added, it is difficult to change the programs to enforce them. The problem is compounded when constraints involve
several data items from different files.
Database Approach
3. Database Approach
In order to overcome the limitation of a file system, a new approach was required. Hence a database approach
emerged.
The initial attempts were to provide a centralized collection of data. A database has a self describing nature.

What is a database?
A database is an organized collection of logically related data of any organization stored in formatted way
with an implicit meaning.
• In a database, data is organized (stored) strictly in row and column (tabular) format. A database can be of
any size and varying complexity.
Types of databases
1. Relational databases
When new data is added, new records are inserted into existing tables or new tables are added. Relationships can
then be made between two or more tables.
A relational database works by linking information from multiple tables through the use of “keys.”
-A key is a unique identifier which can be assigned to a row of data contained within a table.
-This unique identifier, called a “primary key,” can then be included in a record located in another table when that
record has a relationship to the primary record in the main table.
-When this unique primary key is added to a record in another table, it is called a “foreign key” in the associated
table. The connection between the primary and foreign key then creates the “relationship” between records
contained across multiple tables.
Types of databases
1. Relational databases
 A relational database typically stores information in tables containing specific pieces and types of data.
-For example, a shop could store details of their customers’ names and addresses in one table and details of their
orders in another.
 This form of data storage is often called structured data.
 In relational database design, the database usually contains tables consisting of columns and rows.
 When new data is added, new records are inserted into existing tables or new tables are added. Relationships can
then be made between two or more tables.
Types of databases

2. Non-relational databases
Non-relational databases are different from traditional relational databases in that they do not use the tabular
schema of rows and columns. Instead, non-relational databases use a storage model that is optimized for the
specific requirements of the type of data being stored.

Place information in field categories that we create, so that information is available for sorting and disseminating
the way we need it.

The data in non-relational database, however, is limited to that program and cannot be extracted and applied to a
number of other software programs, or other database files within a school or administrative system.
Relational database basic terms

A record is a collection of related data items.


The data items within a row may belong to different data types.
The rows represent the data records. A single row is known as a tuple.
A table (relation) is a collection of related records.
The table is a relation because it stores the relation between data in its column-row format.
The columns of this relation are called Fields, Attributes or Domains.
All the data items within a single attribute are of the same data type.
Characteristics of data in a database

The main features of data in a relational database include:


• It must be well organized
• It is related
• It is accessible in a logical order without any difficulty
• It is stored only once
• It should be persistent( data is available even when system fails unless a user decide to delete it), integrated (no
redundancy and hence ensures consistency) and shared with multiple users without affecting the correctness of
data.
Advantages of database system over manual approach

• Compactness: No need for large amount of paper files


• Speed: The machine can retrieve and modify the data more faster way then human being
• Accuracy: Accurate, up-to-date information is fetched as per requirement of the user at any time.
• Data can be shared: two or more users can access and use same data instead of storing data in redundant manner
for each user.
• Redundancy can be reduced
• Inconsistency can (to some extent) be avoided
• Security restrictions can be applied
• Less drudgery: Much of the maintenance of files by hand is eliminated
WHY THE NEED FOR A DATABASE?
 Keep records of our:
-Clients
-Staffs
-Volunteers
To keep a record of activities and interventions;
Keep sales records;
Develop reports;
Perform research
Some examples of database
Table 1 Table 2 Table 3 Table 4

• Database can also be referred as collection of related relations. This is due to some common attributes existing in a
selected pair of tables. Because of these common attributes, data of two or more tables can be combined together to
find out the complete details of a student.
• Questions like “Which hostel does the youngest student live in?” can be answered now, although Age and Hostel
attributes are in different tables.
Some examples of database
Database applications

• Banking: For customer information, accounts, loans, and banking transactions (deposit and/or withdrawal).

• Credit card transactions: For purchases on credit cards and generation of monthly statements.

• Finance: For storing information about holdings, sales, and purchases of financial instruments such as stocks and
bonds; also for storing real-time market data to enable online trading by customers and automated trading by the
firm.
Database applications

• Sales: For customer, product, and purchase information.


• Accounting: For payments, receipts, account balances, assets and other accounting information.
• Human resources: For information about employees, salaries, payroll taxes, and benefits, and for generation of
paychecks.
• Manufacturing: For management of the supply chain and for tracking production of items in factories, inventories of
items in warehouses and stores, and orders for items.
• Online retailers: For sales data noted above plus online order tracking, generation of recommendation lists, and
maintenance of online product evaluations.
Database applications
• Universities: For student information, course registrations, and grades (in addition to standard enterprise
information such as human resources and accounting).

• Airlines: For reservations and schedule information. Airlines were among the first to use databases in a
geographically distributed manner.

• Telecommunication: For keeping records of calls made, generating monthly bills, maintaining balances on prepaid
calling cards, and storing information about the communication networks.

You might also like