0% found this document useful (0 votes)
16 views

Ch-10 (Comp) - Database Management

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

Ch-10 (Comp) - Database Management

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

INTRODUCTION TO COMPUTER

Chapter 10
Database Management
Revised by: Ansar Javed
Govt. Graduate College Garhmaharaja, Jhang.
Slides Copyrights © PM Series (Original Authors)
Database
Chapter 10 – Database Management
Database
• A database is an organized collection of related data stored in an efficient and
compact manner
• Word "organized" means that data is stored in such a way that it can easily be accessed
and updated
• The phrase "related data" means that a database contains data or information about a
particular area such as:
• Database of employees that contains data of employees of an organization or department.
• Database of students that contains data of students of a college/university etc.
• Word "efficient" means that the required data can be searched very easily and quickly
• Word "compact" means that stored data takes up as little space as possible without any
duplication of data.
Examples of Databases
• NADRA
• Library
• College/University
• Bank Accounts
• E-mail Accounts

• A computerized database is created and maintained by a set of programs


• This set of programs is called a database management system.
Database Objects
Table
• The most important object of the database is "table“
• A database may consist of many tables
• The data is stored in tables of the database
• A table is made up of columns and rows
• The rows represent the records
• Each row is divided into columns called fields
• The fields contain different data values of a particular record
Database Objects
Query
• Query means question or inquiry
• The question like statement that is sent to DBMS to retrieve data from one or more
database tables is called Query
• It is a powerful and flexible way of selecting, filtering and sorting records.
• The user can also change data in the database that fulfills certain criteria
• In addition, a query also allows a user to perform calculations on different fields
• The output of query can also be used as source of records for a Form and Report
• The data from database tables is extracted as follows:
• The data in each record is compared to the given criteria.
• If the information in the record matches with the given criteria, the record is included in the query’s
result.
• Suppose we retrieve records of those students who have 700 marks or more,
Database Objects
Form
• The Form object of database is most commonly used for user interface to
interact with the database
• It is used to enter data into database table(s)
• It is also used to edit/update, view and delete data of database table(s)
• A Form is a window. It consists of text boxes, check boxes, list boxes, labels,
buttons and other graphical objects controls or control objects
• The control objects enable the user to perform different operations on the
data of database tables
• Different control objects are used for different purposes
Database Objects
Report
• The Report object of database is used to retrieve data from database and
present it on screen in a formatted way.
• The data retrieved by Report object can be printed on the printer.
• The output of the query can also be given as input source to the Reports.
• Similarly, a report can also be generated from multiple tables.
• The difference between the forms and reports is as follows:
• Forms are used to enter data into database, change data and view data of databases.
• Reports are used to retrieve the data from database and present it on screen in a
predefined format. Reports do not allow users to change data of database or to enter
any data into database.
Metadata
• A database holds related data as well as a description of that data.
• For this reason, a database is also defined as a self-describing collection of integrated
records.
• Metadata means data about data.
• For example, when a table of a database is designed, the data type, size, format, and other
descriptions of fields are specified.
• Metadata describes the properties or characteristics of actual data in the database.
• It describes the logical structure of the database.
• Metadata is saved in a data dictionary file.
• This file is consulted before actual data is read or modified in the database.
Types of Databases
Chapter 10 – Database Management
Types of Databases
Centralized Databases
• In a centralized database, all data (complete database) is stored and
maintained in one location.
• This location is most often a central computer or a server.
• The data of the database is managed, updated, and accessed at the central
site.
• Multiple users can access the centralized database.
• The centralized database systems are mostly used in colleges, banks,
hospitals, and small organizations.
• Examples of centralized databases
• Personal computer databases
• Client/Server databases
• (Discussed in Detail in book – PM Series – Introduction to Computer)
Types of Databases
Distributed Databases
• In a distributed database, the data is stored across different physical locations.
• It means that portions of a database are physically distributed across different sites
or locations in a computer network.
• A system administrator can distribute collections of data (i.e. portions of a
database) across multiple physical locations.
• A distributed database can reside in network servers on the Internet, on corporate
Intranets or Extranets, or other company networks.
• A distributed database is managed by a centralized distributed database
management system (DDBMS).
• The users access data in a distributed database through a computer network.
• Some big and multi-national organizations/departments have sub-offices in
different cities and countries.
• In such cases, distributed databases are used instead of centralized databases.
Types of Databases
Object-Oriented Databases
• Object-oriented databases are also called Object Database Management
Systems (ODBMS).
• Object databases store objects rather than data like integers, strings, or real
numbers.
• Objects are used in object-oriented languages such as C++ and Java.
• Object databases are used when there is complex data and/or complex data
relationships.
• Applications of object databases
• CAS Applications such as CASE-computer aided software engineering, CAD-computer
aided design, and CAM-computer aided manufacture.
• Multimedia Applications
• Object projects that change over time
• Commerce
Database Management System
(DBMS)
Chapter 10 – Database Management
Database Management System (DBMS)
• A database management system (DBMS) is a collection of programs that are
used to create, maintain, and extract data from databases.
• DBMS is a general-purpose software.
• This software is often called database software.
• There are many different types of DBMSs, ranging from small systems that run
on personal computers to huge systems that run on mainframes.
• Functions of DBMS
• Defining the Structure of Database
• Populating the Database
• Manipulating the Database
Database Management System (DBMS)
• Parts of DBMS
• Physical Database
• Database Engine
• Database Schema

• Examples of DBMS
• Microsoft Access
• Oracle
• Microsoft SQL Server

Details are given in book – PM Series - Introduction to Computer


Components of DBMS
• Software
• DBMS Software
• Operating System
• Application programs & Utilities
• Network Software
• Hardware
• Data
• Procedure
• Users
• Application Programmers
• Database Administrator
• End Users
• Casual End-Users
Details are given in book – PM Series - Introduction to Computer
• Naive Users
Advantages of Database Approach
•Controlling Data Redundancy
•Data Consistency
•Data Sharing
•Data Integration
•Data Integrity
•Data Security
•Data Atomicity
•Control over Concurrency
•Backup and Recovery Procedures
•Data Independence
•Less Storage (or Compactness)
•Advanced Capabilities

Details are given in book – PM Series - Introduction to Computer


Disadvantages of Database Approach
•Higher Cost of Hardware and Software
•Cost of Staff Training
•Technical Staff
•Database Failures

Details are given in book – PM Series - Introduction to Computer


RDBMS
• RDBMS stands for Relational Database Management System.
• It is a collection of programs that are used to manage the relational
databases.
• A relational database system provides various operations used to manipulate
the data in the database tables.
• In a relational database system, a table is known as a relation.
• Today the most popular and commonly used Relational Database
Management Systems (RDBMS) are as follows:
• Oracle, developed by Oracle Corporation
• SQL Server and MS Access, developed by Microsoft
• DB2, developed by IBM
Some Important long Questions
1. What is a Database? What are its applications?
2. Explain Database objects.
3. What is metadata and why is it required?
4. What is DBMS?
5. Explain types of Database
6. What is RDBMS?

*note: Please don’t limit yourselves to these long questions only,


examiner can ask you about same material in different context.
You can extract several short questions as subset of these long
questions.
For more details, refers to

PM Series

Introduction to Computer

by
CM Aslam, Aqsa Aslam, Mussadiq Fida, & Mudassir
Ahmad

Publisher: Majeed Sons


22- Urdu Bazar, Lahore

You might also like