Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
3 views

Lecture 1- Database Concepts and File Base Approach

The document outlines basic database concepts, including definitions, types of data, and the importance of databases in organizations. It discusses the differences between file processing systems and database management systems (DBMS), highlighting the advantages of using DBMS for data management. Additionally, it covers features of DBMS, data independence, and the client-server architecture, emphasizing the significance of databases in everyday life and decision-making.

Uploaded by

inshaaltariq774
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views

Lecture 1- Database Concepts and File Base Approach

The document outlines basic database concepts, including definitions, types of data, and the importance of databases in organizations. It discusses the differences between file processing systems and database management systems (DBMS), highlighting the advantages of using DBMS for data management. Additionally, it covers features of DBMS, data independence, and the client-server architecture, emphasizing the significance of databases in everyday life and decision-making.

Uploaded by

inshaaltariq774
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 41

BASIC DATABASE Lecture

1
CONCEPTS Prepared by:RABBIA
BASHARAT
Course Learning
Objectives
Course Material
Course Contents
Assessments
 3 x Quizzes 10%
 3 x Assignments 10%
 Mid Term Exam 30%
 Final Exam 50%
 Lab Project 30%
BASIC DATABASE
CONCEPTS
Database
o An organized collection of logically related data
o A shared collection of logically related data, designed to meet the
information needs of multiple users in an organization
o A database models a particular real world system in the computer in
the form of data
o A database may be of any size and complexity e.g. a salesperson
may maintain a small database of customer contacts while a
large corporation may build a large database consisting of
several terabytes of data
BASIC DATABASE
CONCEPTS
Management Marketing

Sales Developme
Planning Control Corporat nt
e
Databas
e

Accounting

Accounts Accounts Payable


Receivable
BASIC DATABASE
CONCEPTS
BASIC DATABASE
CONCEPTS
Data
o A stored representation of objects and events that have meaning and
importance in the user’s environment
o For example, in a salesperson’s database, the data would include
facts such as customer name, address, and telephone number
o There are main two type of data
Raw facts
1. Structured Data: and
 This type of data has a pre-defined and figures
organized format
 For example,
Structured name,
data areaddress,
stored and telephone
in tabular form (in tables,
number
relations, arrays, spreadsheets, etc.)
 This type of data are most commonly found in traditional
databases
BASIC DATABASE
CONCEPTS
2. Unstructured Data:
 This type of data does not have a pre-defined format or
organization
 For example, documents, e-mails, maps, photographic images,
sound, and video
 Modern databases can combine both structured and
unstructured data to create a true multimedia environment
o For an organization data is an important resource
o For an organization to make proper decisions at proper time it is
only the data which can provide correct information and in-turn
cause good utilization of other organizational resources
BASIC DATABASE
CONCEPTS
Data VS Information
o The terms data and information are closely related, and in fact are
often used interchangeably
o Data refers to raw, unprocessed facts, figures, or symbols that are
collected or recorded
o It can be in the form of numbers, text, images, videos, or any other
format
o For example, a set of average temperatures recorded monthly is data
o On the other hand, information is the data that have been
processed in such a way as to increase the knowledge of the
person who uses the data
o It is the result of analyzing and interpreting data
o Information can help in making decisions or understanding a specific
topic
BASIC DATABASE
oCONCEPTS
For example, if you analyze the temperature data and find that
there is a steady decrease/decrease in temperature over
a period of time, that would be considered as information

Data

Informati
on
BASIC DATABASE
CONCEPTS
Metadata
o Data that describe the properties or characteristics of end-user
data and the context of those data Or simply it’s data about data
o It includes details such as the format, size, location, and creation
date of a file or dataset
o Metadata can be used to organize and categorize information,
making it easier to search for and analyze
o Examples of metadata include the author and title of a document,
the length and genre of a video, or the date and location a
photograph was taken
o Metadata is typically stored alongside the actual data and can be
accessed and processed by computers to perform various tasks
BASIC DATABASE
oCONCEPTS
Metadata enable database designers and users to understand what
data exist, what the data mean, and how to distinguish
between data items that at first glance look similar
BASIC DATABASE
CONCEPTS
File Processing System
o When computer-based data processing was first
available, there were no databases
and file-based systems were used
o A transitional file processing system, sometimes referred
to asa file-based system, stores data in separate files
o Each file contains a collection of records, and each record is typically
composed of fields or attributes that store specific data
values
o In this system, data is stored and managed on a file-by-file basis
o Updates or modifications to the data require changes to be made
directly to the individual files
BASIC DATABASE
CONCEPTS
Library Examinatio
n
Registratio
n

Library Examinati Registratio


Applicatio on n
ns Applicatio Applicatio
ns ns

Library Examinati Registratio


Data on Data n Data
Files Files Files

Traditional File Processing


System
BASIC DATABASE
CONCEPTS
Disadvantages of File Processing System
1. Program-data Dependence
 Since each application has its own set of files, any change in the
structure or format of data requires modifying all
applications that use that particular file. This makes the
system rigid and inflexible.
2. Duplication Of Data (Data Redundancy)
 Each file in the file processing system is independent of others,
which can lead to duplicate data and data inconsistency.
It also makes it difficult to retrieve and integrate data
from multiple files.
3. Įimited Data Sharing
 With the traditional file processing approach, each application
has its own private files, and users have little opportunity
to share data outside their own applications.
BASIC DATABASE
4.CONCEPTS
Įengthy Development Times
 With traditional file processing systems, each new application
requires that the developer essentially start from scratch by
designing new file formats and descriptions and then
writing the file access logic for each new program.
5. Excessive Program Maintenance
 The preceding factors all combined to create a heavy
program maintenance load in organizations that relied
on traditional file processing systems. In fact, as much as
80 percent of the total information system’s development
budget might be devoted to program maintenance in such
organizations.
BASIC DATABASE
CONCEPTS
OTHER DISADVANTAGES
 Lack of data security
 Data inconsistency
 Difficulty in data retrieval
 Limited concurrency control
 Difficulty in data backup and recovery
 Lack of scalability

It is important to note that many of the disadvantages of


file processing can also be the limitations of databases
if an organization does not properly apply the database
approach
Definition of Database
management system
A(DBMS)
Database Management System (DBMS) is software
designed to store, retrieve, define, and manage data in
a database.
DBMS examples include:
MySQL
SQL Server
Oracle
dBASE
FoxPro
Database
languages:
Data Definition Language (DDL)
DDL is used for specifying the database schema. It is used
for creating tables, schema, indexes, constraints etc. in
database. Lets see the operations that we can perform on
database using DDL:
2.Data Manipulation Language (DML)
DML is used for accessing and manipulating data in a
database. The following operations on database comes
under DML:Data Manipulation Language.
3.Data Control language (DCL)
DCL is used for granting and revoking user access on a
database
4.Transaction Control Language(TCL)
The changes in the database that we made using DML
commands are either performed or rollbacked using TCL.
Difference Between
File System and DBMS
File System DBMS
Structure Structure
The file system is a way of DBMS is software for managing
arranging the files in a storage the database.
medium within a computer.
Data Redundancy Data Redundancy
Redundant data can be present in In DBMS there is no redundant
a file system. data.
Backup and Recovery
It doesn’t provide Inbuilt
mechanism for backup and Backup and Recovery
recovery of data if it is lost. It provides in house tools for
Query processing backup and recovery of data even
There is no efficient query if it is lost.
processing in the file system. Query processing
Efficient query processing is there
in DBMS.
.
Why Database
Systems?
 Your life is dramatically affected by database technology. You come into
contact with databases daily basis through activities such as withdrawing
cash using ATM, shopping at a supermarket, ordering book online and
registering for classes.
 The convenience of your life is partly due to proliferation of computerized
databases and supporting database technology.
 Database technology is not only improving the daily operations of
organization but also the quality of decision that affect our lives.
 Databases contain a flood of data about many aspects of our lives: consumer
preferences, telecommunications usage, credit history, television viewing
habits, and so on. Database technology helps to summarize this mass of data
into useful information for decision making.
 Management uses information gleaned from databases to make long-range
decisions such as investing in plants and equipment, locating stores, adding
new items to inventory, and entering new businesses.
Database Characteristics
 Database is a collection of persistent data that can be shared and interrelated.
 Persistent means that data reside on stable storage such as a magnetic disk.
For example, organizations need to retain data about customers, suppliers, and
inventory on stable storage because these data are repetitively used.
Persistency depends on relevance of intended usage.
 Shared means that a database can have multiple uses and users. A database
provides a common memory for multiple functions in an organization. For
example, a personnel database can support payroll calculations, performance
evaluations, government reporting requirements, and so on. Many users can
access a database at the same time. For example, many customers can
simultaneously make airline reservations.
 Interrelated means that data stored as separate units can be connected to
provide a whole picture. For example, a customer database relates customer
data (name, a d d r e s s , . . . ) to order data (order number, order d a t e , . . . )
to facilitate order processing.
Simple Database Example to Depict
Database Characteristics
Entity is a cluster of data usually about a single subject that can
be accessed together. An entity can denote a person, place, thing,
or event. For example, a personnel database contains entities
such as employees, departments, and skills as well as
relationships showing employee assignments to departments,
skills possessed by employees, and salary history of employees. A
typical business database may have hundreds of entities and
relationships.
Features of Database Management
Systems

A database management system (DBMS) is a collection of


components that supports the creation, use, and maintenance of
databases.
1. Database Definition
To define a database, the entities and relationships must be
specified. In most commercial DBMSs, tables store collections of
entities. A table has a heading row (first row) showing the column
names and a body (other rows) showing the contents of the table.
Relationships indicate connections among tables. For example,
the relationship connecting the student table to the enrollment
table shows the course offerings taken by each student.
Features of Database Management
Systems
2. Nonprocedural Access
The most important feature of a DBMS is the ability to answer
queries. A query is a request for data to answer a question. For
example, the user may want to know customers having large
balances or products with strong sales in a particular region.
Nonprocedural access allows users with limited computing skills
to submit queries. The user specifies the parts of a database to
retrieve, not implementation details of how retrieval occurs.
Implementation details involve coding complex procedures with
loops.
Nonprocedural languages do not have looping statements (for,
while, and so on) because only the parts of a database to retrieve
are specified.
Features of Database
Management Systems
3. Procedural Language Interface
 Procedural Language Interface is a method to combine a
nonprocedural language such as SQL with a programming
language.
 DBMSs provide the full capabilities of a programming language.
For example, Visual Basic for Applications (VBA) is a
programming language that is integrated with Microsoft Access.
VBA allows full customization of database access, form
processing, and report generation.
 Most commercial DBMSs have a procedural language interface
comparable to VBA. For example, Oracle has the language
PL/SQL and Microsoft SQL Server has the language Transact-SQL.
Features of Database
Management Systems
4. Transaction processing
 Transaction processing enables a DBMS to process large
volumes of repetitive work.
 A transaction is a unit of work that should be processed
reliably without interference from other users and without
loss of data due to failures. Examples of transactions are
withdrawing cash at an ATM, making an airline reservation,
and registering for a course.
 A DBMS ensures that transactions are free of interference
from other users, parts of a transaction are not lost due to a
failure, and transactions do not make the database
inconsistent.
Features of Database Management Systems

5. Database Tuning
 In addition to features provided directly by vendors of DBMSs, third-
party software is also available for many DBMSs.
 In most cases, third-party software extends the features available
with the database software. For example, many third-party vendors
provide advanced database design tools that extend the database
definition and tuning capabilities provided by DBMSs.

Entity Relationship Diagram (ERD) for University


Database
Summary of
Features of
DBMSs
Evolution of
Database
Technology
Current Market
for Database
Software

2003 market shares by revenue of


enterprise database software
Architectures of
 DBMSs
In order to develop conceptual understanding about internal
organization of DBMSs, this section describes two
architectures or organizing frameworks.
 These architectures promote a conceptual understanding
rather than indicate how an actual DBMS is organized.
1. Data Independence and the Three Schema
Architecture
2. Distributed Processing and the Client-Server
Architecture
Data Independence and the Three Schema
Architecture
The concept of data independence emerged to alleviate problems
with program maintenance. Data independence means that a
database should have an identity separate from the applications
(computer programs, forms, and reports) that use it. The separate
identity allows the database definition to be changed without
affecting related applications.
In the mid-1970s, the concept of data independence led to the
proposal of the Three Schema Architecture. The word schema
as applied to databases means database description.
Data Independence and the Three Schema
Architecture
The Three Schema Architecture includes three levels of database
description. The external level is the user level. Each group of users
can have a separate external view (or view for short) of a database
tailored to the group's specific needs.
In contrast, the conceptual and internal schemas represent the
entire database. The conceptual schema defines the entities and
relationships. For a business database, the conceptual schema can be
quite large, perhaps hundreds of entity types and relationships. Like
the conceptual schema, the internal schema represents the entire
database.
However, the internal schema represents the storage view of the
database whereas the conceptual schema represents the logical
meaning of the database. The internal schema defines files,
collections of data on a storage device such as a hard disk. A file can
store one or more entities described in the conceptual schema.
University Database Example Depicting
Differences among Schema Levels

Conceptual
External
Schema
Schema

Internal
Distributed Processing and the Client-Server
Architecture
 With the growing importance of network computing and the Internet,
distributed processing is becoming a crucial function of DBMSs.
Distributed processing allows geographically dispersed computers to
cooperate when providing data access.
 Many DBMSs support distributed processing using a client-server
architecture. A client is a program that submits requests to a
server. A server processes requests on behalf of a client.
Career Opportunities Related to Database Application development and database administration

 Because databases are pervasive, there are a variety of ways in which you
may interact with databases.
 The classification in following figure distinguishes between functional users
who interact with databases as part of their work and information systems
professionals who participate in designing and implementing databases.
Each box in the hierarchy represents a role that you may play. You may
simultaneously play more than one role.
Career Opportunities Related to Database Application development and database
administration

 Functional users can play a passive or an active role when interacting with
databases.
 Indirect usage of a database is a passive role. An indirect user is given a report
or some data extracted from a database.
 A parametric user is more active than an indirect user. A parametric user
requests existing forms or reports using parameters, input values that change
from usage to usage. For example, a parameter may indicate a date range, sales
territory, or department name.
 The power user is the most active. Because decision-making needs can be
difficult to predict, ad hoc or unplanned usage of a database is important. A power
user is skilled enough to build a form or report when needed.
 Information systems professionals interact with databases as part of
developing an information system.
 Analyst/programmers are responsible for collecting requirements, designing
applications, and implementing information systems.
 Database administrators assist both information systems professionals and
functional users. Database administrators have a variety of both technical and
nontechnical responsibilities . Technical skills are more detail-oriented;
nontechnical responsibilities are more people-oriented.
 Information resource management is a response to the challenge of
effectively utilizing information technology. The goal of information resource
management is to use information technology as a tool for processing,
distributing, and integrating information throughout an organization.
THANK
YOU

You might also like