SlideShare a Scribd company logo
Copyright @ IT Series www.itseries.com.pk
CHAPTER 1: Data Basics
COMPUTER SCIENCE
12
(MS Access and C)
Copyright @ IT Series www.itseries.com.pk
• Data & Information
• Data Processing & its Activities
• File, Record and Field
• File Types from Usage Point of View
• File Types from Functional Point of View
• Organize Files on Storage Media
• Problems in File Processing System
• Database
• Database System and its Components
• Objectives of Database
• Database Model
• DBMS & its Objectives
Topics
Copyright @ IT Series www.itseries.com.pk
• Features of DBMS
• Advantages of DBMS
• Disadvantages of DBMS
Topics (continued)
Copyright @ IT Series www.itseries.com.pk
possible to perform mathematical operation on character values
Data
• Collection of facts and figures related to an object
• Data may consist of text, numbers, images, sound and videos
• Processed to produce useful information
Importance of Data
• Used by managers to perform effective and successful operations of management
• Provides a view of past activities related to the rise and fall of an organization
• Enables the organization to make better decision for future activities
Example
• The data of student may consist of Roll Number, Student Name, and marks of
different subjects
Object can be person,
event or anything
about which data is
collected
Copyright @ IT Series www.itseries.com.pk
possible to perform mathematical operation on character values
Information
• Processed data
• Organized
• Meaningful
• Useful
• Used for making decisions
• Data is used as input for processing and information is the output of this processing
Example
• The data of student can be processed to produce useful information such as:
• Total Marks
• Grade
• Find the number of passed and failed students etc.
Copyright @ IT Series www.itseries.com.pk
possible to perform mathematical operation on character values
Difference between Data and Information
Data Information
• Collection of raw facts and figures
• Processed form of data
• Used as input in the computer
• Output of computer
• Huge in its volume
• Short in its volume
• Difficult or even impossible to reproduce. For
example, it is very hard to reproduce the
data of census if it is lost
• Easier to reproduce. For example, number of
graduate citizens can be recalculated from
the stored data
• Used rarely
• Used frequently
• Does not dependent on information • Depends on data
Copyright @ IT Series www.itseries.com.pk
possible to perform mathematical operation on character values
Data Processing or Operations on Data
• Series of actions or operations are performed on data to get required output or result (Information)
• Software is used to process data
• Software convert the data into meaningful information
Activities in Data Processing
Activities
Data
Capturing
Data
Manipulation
Managing
output
results
Copyright @ IT Series www.itseries.com.pk
possible to perform mathematical operation on character values
Activities in Data Processing
1. Data Capturing
• Process of recording the data in some form
• Data is captured before it can be processed
• Data may be recorded on source document
• Source document may include:
• Photographs, checks, or product label, brochures
• Recording data directly into Computer
• Provide a quick and efficient way to input data
• Saves time
• Increases accuracy
Copyright @ IT Series www.itseries.com.pk
possible to perform mathematical operation on character values
Activities in Data Processing
2. Data Manipulation
• Process of applying different operations on data
• Classifying - The process of organizing data into classes or groups
• Example - Data of college can be in two group → Data of student and Data of teacher
• Calculation - The process of applying arithmetic operations( +, -, ÷ , ×) on data
• Example - The total marks of student are calculated to find the grade
• Sorting - The process of arranging data in logical sequence
• Example - Name of students can be sorted according to obtained marks
• Summarizing - Process of reducing a large amount of data in more concise form
• Example - Data of students in class can be summarized to show number of passed and failed
students
Copyright @ IT Series www.itseries.com.pk
possible to perform mathematical operation on character values
Activities in Data Processing
3. Managing Output Result
Performed on data after the data has been captured and manipulated
• Storage - The process of retaining data on storage media such as hard disk for
future use
• Example - The student data is stored on the hard disk
• Calculation - The process of accessing or fetching the stored data
• Example - Student data can be retrieved from the hard disk any time to prepare result card
• Communication - The process of transferring data from one location to another
• Example - The result can be sent to the students via email
• Reproduction - The process of copying or duplicating data
• Data can be reproduced if different users need data at different locations
Copyright @ IT Series www.itseries.com.pk
possible to perform mathematical operation on character values
Field, Record and File
Field
• A combination of one or more characters
• Represents Smallest unit of data
• Name of each field in a record is unique
• Each field contains one specific piece of information
• Example - The EmployeeID, Name, HireDate, JobTitle and Phone
Record
• A collection of related fields used as single unit
• Example - An Employee’s record includes a set of fields that contains EmployeeID,
Name, HireDate, JobTitle and Phone
Copyright @ IT Series www.itseries.com.pk
possible to perform mathematical operation on character values
Field, Record and File
File
• A collection of related records used as single unit
• Files are stored on different storage media such as hard disk, USB flash drive or
optical disc (CDs and DVDs)
Example
• Employee file may contain the
records of hundreds of Employees
Copyright @ IT Series www.itseries.com.pk
possible to perform mathematical operation on character values
File Types from Usage point of View
1. Master File
• Used to store the information that remains constant for a long period of time
• Example – A college maintains a master file of all students
• It is updated when any change in its contents is required
• These files are never empty since they are created
2. Transaction File
• Used to store the input data before processing
• It may be temporary file
• The data in transaction files is used to update the master files
• It may exist until the master file is updated
• It may also be used to maintain a permanent record of data about transaction
• Example – A transaction file can be used to store the fee deposited by the student
Copyright @ IT Series www.itseries.com.pk
possible to perform mathematical operation on character values
File Types from Usage point of View
3. Backup File
• Used to take the backup of important data
• Permanent file
• Make additional copy of data
• The data can be recovered from backup files if any data file is lost or damaged
• Backup files are mostly created by using specific software (utility program)
Copyright @ IT Series www.itseries.com.pk
possible to perform mathematical operation on character values
File Types from Functional Point of View
• A file consists of file name and file extension
• Name and extension of file is separated by dot (.)
• The extension of a file is normally assigned by the software in which it is created
1. Program File
• Contains the software instructions
• File extensions: .exe or .com
• Contains instructions that can be directly executed by the computer
Copyright @ IT Series www.itseries.com.pk
possible to perform mathematical operation on character values
File Types from Functional Point of View
2. Data File
• A type of file that contains data
• Data files are created by the software being used
• Different software store data in the data files using different formats
• Data files is generally opened in the same software in which it is created
• It can also be opened in different software that supports the format of that data file
Copyright @ IT Series www.itseries.com.pk
possible to perform mathematical operation on character values
File Organization
A technique for physically arranging records of file on secondary storage devices
1. Sequential Files
• Records are stored on the storage media in a sequence
• Records can be retrieved only in sequence in which they were stored
• Major disadvantage is very slow access time for a particular record
Copyright @ IT Series www.itseries.com.pk
possible to perform mathematical operation on character values
File Organization
2. Direct or Random Files
• Records are not stored in a particular sequence
• The records are stored at known address or location
• The address or location is calculated against the value of the key field of the record
• Synonym problem→ If the same address is calculated to store two or more records
• Faster than sequential file organization for finding a particular record
• Storage media for direct file organization are hard disk , optical discs( CDs, DVDs)
Copyright @ IT Series www.itseries.com.pk
possible to perform mathematical operation on character values
File Organization
3. Indexed Sequential Files
• Records are stored in ascending or descending order based on value called key
• An index value is generated for each key and mapped with the record
• Index refers to the location or address on a disk where a record is stored
• The index is stored in a file called index file
• Index file contains the value of :
• Each key field
• Disk address of record with corresponding key field
• Index file is updated whenever a record is added or deleted from the file
• Main advantage
• Allows for both random and sequential processing
• Main disadvantages
• Extra space is required to store indexes
• Extra time necessary to access and maintain indexes
Copyright @ IT Series www.itseries.com.pk
possible to perform mathematical operation on character values
File Processing System
• This system is used by different organization to store and manage data
• Each department has its own set of data files and application program
• Each program defines and manages its own data
• Every Process generate its separate files and does not communicate with each other
Example
Copyright @ IT Series www.itseries.com.pk
Problems in File Processing System
Data Redundancy Duplication of data in multiple files
Example
Suppose that two files are used in a college. The Students file contains the data such
as RollNo, Name, Address, Phone and other details of the students. The Library file
contains the same data of the students who borrow books from library along with the
information about the book. The data of one student appears in two files. It causes
wastage of storage and creates many problems.
Copyright @ IT Series www.itseries.com.pk
Problems in File Processing System
Example
The address of a student must be updated in all files if any change occurs. It is
possible that it is changed in Students file but not in Library file. The data becomes
inconsistent in this situation.
Data Inconsistency Two files many contain different data about the same thing.
Copyright @ IT Series www.itseries.com.pk
Problems in File Processing System
Example
If there is a change in the length of postal code, it requires change in the program. The
changes may be costly to implement.
Program Dependence The application program has to be changed if the format of file is
changed.
Copyright @ IT Series www.itseries.com.pk
Problems in File Processing System
Example
Suppose a students report is required in the college. The data will be collected from
various files to prepare the report. It requires a lot of time and effort to write program
for such types of reports in file processing system.
Lack of Flexibility
Combined reports are very difficult to display as data is scattered in
different files.
Copyright @ IT Series www.itseries.com.pk
Problems in File Processing System
Example
RollNo and Marks of the students should be numeric value. It is very difficult to apply
these constraints on files in file processing system.
Data Integrity Problem Integrity means reliability and accuracy of data
Copyright @ IT Series www.itseries.com.pk
Problems in File Processing System
Example
A data entry operator should only be allowed to enter data. The chairman of the
organization should be able to access or delete the data completely. Such types of
security options are not available in file management system.
Lack of Data Security It is not possible to define different access levels for different users.
Copyright @ IT Series www.itseries.com.pk
Problems in File Processing System
Limited Data Sharing The file processing system provides a limited data sharing
Each application has its own data files.
It is very difficult for one application program to access the data from a
file that is created by other application program.
The file processing system also provides very limited data sharing among
different users.
Copyright @ IT Series www.itseries.com.pk
possible to perform mathematical operation on character values
• Collection of logically related data sets or files
• Each data set or file may contain different kind of information
Example – Client Database of Bank have different files:
 Saving Accounts
 Current Accounts
 Automobile Loan
 Personal Loan
 Clients Information etc.
Facilities Provided by database System
Database
Inserting
data
Adding new
files
Removing
existing files
Retrieving
data
Updating
data
Deleting
data
Copyright @ IT Series www.itseries.com.pk
possible to perform mathematical operation on character values
Objective of Database
1. Data Integration
• An efficient approach to utilizing data
• Data integration involves combining data located in different computers and
providing users with a unified view of them
• Logically, data is centralized
Copyright @ IT Series www.itseries.com.pk
possible to perform mathematical operation on character values
Objective of Database
2. Data Integrity
• Reliability & accuracy of data
• Rules are designed to keep data consistent and correct
• Enforcing data integrity ensures the quality of data
• Example
• Same Employee ID is not assigned to multiple employees
3. Data Independence
• Data and application programs are separate from each other
• User can change data storage structure without changing the application program
• The user can also modify programs without affecting data
Copyright @ IT Series www.itseries.com.pk
possible to perform mathematical operation on character values
• Collection of data as well as program required to manage that data
• Computerized record-keeping system
Purpose
• Maintain data
• Provide it to the user when it is required
Database System
Copyright @ IT Series www.itseries.com.pk
possible to perform mathematical operation on character values
1. Data
• Main purpose of database system is:
• To store data
• To maintain data
• To Process data
Components of Database System
Copyright @ IT Series www.itseries.com.pk
possible to perform mathematical operation on character values
2. Hardware
• Physical components of computer
• Used to perform different tasks such as input, output, storage and processing
• Example of Hardware components
• Secondary storage
• I/O devices
• Processors
• Main memory
Components of Database System
Copyright @ IT Series www.itseries.com.pk
possible to perform mathematical operation on character values
3. Software
• Collection of programs used by the computer within database system
• DBMS
• Use to create and manage a database in database system
• Application Program
• Used to access and process the data stored in database
• Operating System
• Manage all hardware components
• Enables all other software to run on the computer
Components of Database System
Copyright @ IT Series www.itseries.com.pk
possible to perform mathematical operation on character values
4. Personnel
• People related to the database system
• Database Administrator (DBA)
• Person who is responsible to manage the whole database system
• Application Programmer
• Person who writes the application program to access data from database
• End Users
• Persons who perform different operations on database
• Access DBMS through Application program
Components of Database System
Copyright @ IT Series www.itseries.com.pk
possible to perform mathematical operation on character values
• A set of rules and standards that define how the database organizes data
Data Models
Types of
Models
Hierarchical
Model
Network
Model
Relational
Model
Copyright @ IT Series www.itseries.com.pk
possible to perform mathematical operation on character values
1. Hierarchical Model
• Records are arranged in a hierarchy like an organizational chart
• Each record type is called a node or segment
• Node represents a particular entity
• Topmost node is root
• Use Parent /Child relationship
• Each parent node can have many child nodes
• Each child node may have only one parent node
• One-to-many relationship between data entities
• Kind of structure → Inverted tree
Data Models
Copyright @ IT Series www.itseries.com.pk
possible to perform mathematical operation on character values
2. Network Model
• Similar to hierarchical model but one difference
• A child node may have any number of parent nodes
• Child nodes represented by arrows
• Complex diagram to represent a database
• Provides more flexibility than hierarchical model
Data Models
Copyright @ IT Series www.itseries.com.pk
possible to perform mathematical operation on character values
3. Relational Model
• Most commonly used database model
• More flexible than hierarchical and network database model
• Consists of a collection of simple relations or tables
• Relation represents a particular entity to store information about entity
• Relationships are based on the data of the entities
• Relationship between entities is represented by diagram
Data Models
Copyright @ IT Series www.itseries.com.pk
possible to perform mathematical operation on character values
• Collection of programs used to create, maintain, and access databases in
convenient and efficient manner
• DBMS uses Database Manager
• Software
• Controls the overall structure of database
• Some Relational DBMS vendors/products like:
• Access & SQL Server/MS , MySQL, Oracle ..etc
DBMS
Convenient Data is stored in such a way that the user can use this data easily
Efficient The user can search the required data quickly
Copyright @ IT Series www.itseries.com.pk
possible to perform mathematical operation on character values
1. Shareability
• Data is shared by different people at the same time
• Data is stored at central place
• Different users can share the data from different locations
• Reduce storage space and provides data consistency
2. Availability
• Users must be able to access data and DBMS easily
• Data should be available when it is required
Objectives of DBMS
Copyright @ IT Series www.itseries.com.pk
possible to perform mathematical operation on character values
3. Evolvability
• Provide the facility to change the database due to
• Increase in user requirements or change in the technology
4. Database Integrity
• Accuracy of Data
• Quality of data entered determines the quality of generated information
Objectives of DBMS
Copyright @ IT Series www.itseries.com.pk
possible to perform mathematical operation on character values
Features of DBMS
Data Dictionary
Utilities
Query Language
Report Generator
Access Security
Backup and Recover
Copyright @ IT Series www.itseries.com.pk
possible to perform mathematical operation on character values
1. Data Dictionary / Repository
• Contains data definitions for a database:
• Data Definition is the process of describing the properties of data to be included in a database table
• During data definition, each field is assigned:
• Name (must be unique within the table)
• Data type (such as Text, Number, Currency, Date/Time)
• Properties (field size, format of the field, allowable range, if field is required, etc.)
• Finished specifications for a table become the table structure
• Ensures that data is according to the data definition rules
• Used for data access authorization (Password, etc) for database users
Features of DBMS
Copyright @ IT Series www.itseries.com.pk
possible to perform mathematical operation on character values
2. Utilities
• Programs used to maintain database
• Some of these programs are also used for backup and recovery of data
3. Query Language
• A query is a request for specific data from the database
• A query language consists of simple, English-like statements that allow users to
specify the data to display, print, store, update, or delete
Structured Query Language (SQL) is a popular query language that allows users to manage,
update, and retrieve data
Features of DBMS
Copyright @ IT Series www.itseries.com.pk
possible to perform mathematical operation on character values
4. Report Generator / Report Writer
• Program that is used to generate reports
• Retrieves data from database and displays it to the user in different formats
• Produce useful and attractive reports by using report generator
5. Access Security
• Protection of database from unauthorized access
• DBMS provides several procedures to maintain data security
• Allowing access to the database through the use of username and passwords
• Different users have different levels of access rights to database
• A data entry operator should only be allowed to enter data
• The chairman of the organization should be able to access or delete the data completely
Features of DBMS
Copyright @ IT Series www.itseries.com.pk
possible to perform mathematical operation on character values
6. Backup and Recover
• DBMS Provides the facility of backup and recover
• Backup facility is used to store an additional copy of data
• Data can be recovered from backup file
• if the original data file is lost or damaged
Features of DBMS
Copyright @ IT Series www.itseries.com.pk
possible to perform mathematical operation on character values
1. Data Independence
• Data and application programs are separate from each other
• User can change data storage structure without changing the application program
• The user can also modify programs without affecting data
2. Redundancy Control
• Redundancy means duplication of data in multiple files → causes wastage of storage
• The data in database appears only once and is not duplicated
• The same data is used at all required places
Advantages of DBMS
Copyright @ IT Series www.itseries.com.pk
possible to perform mathematical operation on character values
3. Consistency Constraints
• Allows user to design complex data structures
• Enables users to view and access data in different ways
4. Data Security
• Protection of database from unauthorized access
• DBMS provides several procedures to maintain data security
• Allowing access to the database through the use of username and passwords
• Different users have different levels of access rights to database
• A data entry operator should only be allowed to enter data
• The chairman of the organization should be able to access or delete the data completely
Advantages of DBMS
Copyright @ IT Series www.itseries.com.pk
possible to perform mathematical operation on character values
5. Backup and Recover
• DBMS Provides the facility of backup and recover
• Backup facility is used to store an additional copy of data
• Data can be recovered from backup file
• if the original data file is lost or damaged.
6. Advanced Capabilities
• Provides advance capabilities
• Online access - Access data through Internet
Advantages of DBMS
Copyright @ IT Series www.itseries.com.pk
possible to perform mathematical operation on character values
1. High Cost of DBMS
• Expensive to purchase database management software e.g. Oracle
2. Higher Hardware Cost
• DBMS Software requires powerful hardware to work properly and efficiently
• Requires large size memory and high speed processor
3. Appointing Technical Staff
• DBMS is a complex system
• Technical staff such as database administrator and application programmer is
required to manage DBMS
• Pay good salaries to the technical staff increases cost
Disadvantages of DBMS
Copyright @ IT Series www.itseries.com.pk
possible to perform mathematical operation on character values
4. Cost of Staff Training
• DBMS is a complex system
• Requires trained user to use it properly
• Use training is required in all fields:
• Programming
• Application development
• Database administrator
• Spend a lot amount for staff training
Disadvantages of DBMS
Copyright @ IT Series www.itseries.com.pk
possible to perform mathematical operation on character values
5. Problem in Wrong Database Environment
• The problems may occur if wrong type of database environment is selected
• The database system may also need to change due to change in requirements
• The change can be costly due to conversion and testing
• Difficult and time-consuming process
• Require a lot of cost to implement the changes
6. Need of Data Dictionary
• Useful tool but expensive
• Requires installation costs as well as hardware requirements
Disadvantages of DBMS
Copyright @ IT Series www.itseries.com.pk

More Related Content

What's hot

File organization
File organizationFile organization
File organization
Gokul017
 
2.7 use of ict in data management
2.7 use of ict in data management2.7 use of ict in data management
2.7 use of ict in data management
Haa'Meem Mohiyuddin
 
Database (IT) Lecture Slide
Database (IT) Lecture SlideDatabase (IT) Lecture Slide
Database (IT) Lecture Slide
Muhammad Talha Zaroon
 
File organization
File organizationFile organization
2.7 Use of ICT in Data Management
2.7 Use of ICT in Data Management2.7 Use of ICT in Data Management
2.7 Use of ICT in Data Management
Momina Mateen
 
File organization
File organizationFile organization
File organization
Ganesh Pawar
 
Introduction to data management, terminologies and use of data management pla...
Introduction to data management, terminologies and use of data management pla...Introduction to data management, terminologies and use of data management pla...
Introduction to data management, terminologies and use of data management pla...
International Institute of Tropical Agriculture
 
overview of storage and indexing BY-Pratik kadam
overview of storage and indexing BY-Pratik kadam overview of storage and indexing BY-Pratik kadam
overview of storage and indexing BY-Pratik kadam
pratikkadam78
 
File organization in database
File organization in databaseFile organization in database
File organization in database
Afrasiyab Haider
 
Oceangraphic data formats
Oceangraphic data formatsOceangraphic data formats
Oceangraphic data formats
Fiddy Prasetiya
 
CS3270 - DATABASE SYSTEM - Lecture (1)
CS3270 - DATABASE SYSTEM -  Lecture (1)CS3270 - DATABASE SYSTEM -  Lecture (1)
CS3270 - DATABASE SYSTEM - Lecture (1)
Dilawar Khan
 
Concept of computer files for Grade 12 learners
Concept of computer files for Grade 12 learnersConcept of computer files for Grade 12 learners
Concept of computer files for Grade 12 learners
wellingtonoboh
 
Lecture #1 Introduction
Lecture #1 IntroductionLecture #1 Introduction
Lecture #1 Introduction
Rico
 
Normalization
NormalizationNormalization
Fundamental File Processing Operations
Fundamental File Processing OperationsFundamental File Processing Operations
Fundamental File Processing Operations
Rico
 
Files Management
Files ManagementFiles Management
Files Management
Fe Angela Verzosa
 
Database Systems
Database SystemsDatabase Systems
Database Systems
Sheikh Hussnain
 
Database Systems - Lecture Week 1
Database Systems - Lecture Week 1Database Systems - Lecture Week 1
Database Systems - Lecture Week 1
Dios Kurniawan
 
Data Analytics: HDFS with Big Data : Issues and Application
Data Analytics:  HDFS  with  Big Data :  Issues and ApplicationData Analytics:  HDFS  with  Big Data :  Issues and Application
Data Analytics: HDFS with Big Data : Issues and Application
Dr. Chitra Dhawale
 
Ch09 records management
Ch09 records managementCh09 records management
Ch09 records management
xtin101
 

What's hot (20)

File organization
File organizationFile organization
File organization
 
2.7 use of ict in data management
2.7 use of ict in data management2.7 use of ict in data management
2.7 use of ict in data management
 
Database (IT) Lecture Slide
Database (IT) Lecture SlideDatabase (IT) Lecture Slide
Database (IT) Lecture Slide
 
File organization
File organizationFile organization
File organization
 
2.7 Use of ICT in Data Management
2.7 Use of ICT in Data Management2.7 Use of ICT in Data Management
2.7 Use of ICT in Data Management
 
File organization
File organizationFile organization
File organization
 
Introduction to data management, terminologies and use of data management pla...
Introduction to data management, terminologies and use of data management pla...Introduction to data management, terminologies and use of data management pla...
Introduction to data management, terminologies and use of data management pla...
 
overview of storage and indexing BY-Pratik kadam
overview of storage and indexing BY-Pratik kadam overview of storage and indexing BY-Pratik kadam
overview of storage and indexing BY-Pratik kadam
 
File organization in database
File organization in databaseFile organization in database
File organization in database
 
Oceangraphic data formats
Oceangraphic data formatsOceangraphic data formats
Oceangraphic data formats
 
CS3270 - DATABASE SYSTEM - Lecture (1)
CS3270 - DATABASE SYSTEM -  Lecture (1)CS3270 - DATABASE SYSTEM -  Lecture (1)
CS3270 - DATABASE SYSTEM - Lecture (1)
 
Concept of computer files for Grade 12 learners
Concept of computer files for Grade 12 learnersConcept of computer files for Grade 12 learners
Concept of computer files for Grade 12 learners
 
Lecture #1 Introduction
Lecture #1 IntroductionLecture #1 Introduction
Lecture #1 Introduction
 
Normalization
NormalizationNormalization
Normalization
 
Fundamental File Processing Operations
Fundamental File Processing OperationsFundamental File Processing Operations
Fundamental File Processing Operations
 
Files Management
Files ManagementFiles Management
Files Management
 
Database Systems
Database SystemsDatabase Systems
Database Systems
 
Database Systems - Lecture Week 1
Database Systems - Lecture Week 1Database Systems - Lecture Week 1
Database Systems - Lecture Week 1
 
Data Analytics: HDFS with Big Data : Issues and Application
Data Analytics:  HDFS  with  Big Data :  Issues and ApplicationData Analytics:  HDFS  with  Big Data :  Issues and Application
Data Analytics: HDFS with Big Data : Issues and Application
 
Ch09 records management
Ch09 records managementCh09 records management
Ch09 records management
 

Similar to Chap01 (ics12)

MS ACCESS AND C CHAPTER NO 1 OF COMPUTER SCIENCE
MS ACCESS AND C CHAPTER NO 1 OF COMPUTER SCIENCEMS ACCESS AND C CHAPTER NO 1 OF COMPUTER SCIENCE
MS ACCESS AND C CHAPTER NO 1 OF COMPUTER SCIENCE
AqibMehmood43
 
ITFT- Dbms
ITFT- DbmsITFT- Dbms
ITFT- Dbms
Blossom Sood
 
Database basics
Database basicsDatabase basics
Database basics
Imran Chowdhary
 
Data Management for Undergraduate Researchers (updated - 02/2016)
Data Management for Undergraduate Researchers (updated - 02/2016)Data Management for Undergraduate Researchers (updated - 02/2016)
Data Management for Undergraduate Researchers (updated - 02/2016)
Rebekah Cummings
 
Database management system lecture notes
Database management system lecture notesDatabase management system lecture notes
Database management system lecture notes
UTSAHSINGH2
 
Preventing data loss
Preventing data lossPreventing data loss
Preventing data loss
IUPUI
 
Data concepts
Data conceptsData concepts
Data concepts
Sachidananda M H
 
Ch 2-introduction to dbms
Ch 2-introduction to dbmsCh 2-introduction to dbms
Ch 2-introduction to dbms
Rupali Rana
 
Digital data
Digital dataDigital data
Digital data
ShivanandaVSeeri
 
Digital Types
Digital TypesDigital Types
Digital Types
ShivanandaVSeeri
 
Week 9
Week 9Week 9
Week 9
Joey Pierce
 
File_Organization_112014
File_Organization_112014File_Organization_112014
File_Organization_112014
eshuppy
 
Data Management for Undergraduate Researchers
Data Management for Undergraduate ResearchersData Management for Undergraduate Researchers
Data Management for Undergraduate Researchers
Rebekah Cummings
 
File Processing System
File Processing SystemFile Processing System
File Processing System
DMMMSU-SLUC
 
Best practices data management
Best practices data managementBest practices data management
Best practices data management
Sherry Lake
 
20170222 ku-librarians勉強会 #211 :海外研修報告:英国大学図書館を北から南へ巡る旅
20170222 ku-librarians勉強会 #211 :海外研修報告:英国大学図書館を北から南へ巡る旅20170222 ku-librarians勉強会 #211 :海外研修報告:英国大学図書館を北から南へ巡る旅
20170222 ku-librarians勉強会 #211 :海外研修報告:英国大学図書館を北から南へ巡る旅
kulibrarians
 
DBS Theory Week 1 including relationships and relational database
DBS Theory Week 1 including relationships and relational databaseDBS Theory Week 1 including relationships and relational database
DBS Theory Week 1 including relationships and relational database
walaahuluu
 
File Management
File ManagementFile Management
File Management
ramya marichamy
 
ISBB_Chapter4.pptx
ISBB_Chapter4.pptxISBB_Chapter4.pptx
ISBB_Chapter4.pptx
purnecole
 
UNIT machine learning unit 1,algorithm pdf
UNIT machine learning  unit 1,algorithm pdfUNIT machine learning  unit 1,algorithm pdf
UNIT machine learning unit 1,algorithm pdf
OmarFarooque9
 

Similar to Chap01 (ics12) (20)

MS ACCESS AND C CHAPTER NO 1 OF COMPUTER SCIENCE
MS ACCESS AND C CHAPTER NO 1 OF COMPUTER SCIENCEMS ACCESS AND C CHAPTER NO 1 OF COMPUTER SCIENCE
MS ACCESS AND C CHAPTER NO 1 OF COMPUTER SCIENCE
 
ITFT- Dbms
ITFT- DbmsITFT- Dbms
ITFT- Dbms
 
Database basics
Database basicsDatabase basics
Database basics
 
Data Management for Undergraduate Researchers (updated - 02/2016)
Data Management for Undergraduate Researchers (updated - 02/2016)Data Management for Undergraduate Researchers (updated - 02/2016)
Data Management for Undergraduate Researchers (updated - 02/2016)
 
Database management system lecture notes
Database management system lecture notesDatabase management system lecture notes
Database management system lecture notes
 
Preventing data loss
Preventing data lossPreventing data loss
Preventing data loss
 
Data concepts
Data conceptsData concepts
Data concepts
 
Ch 2-introduction to dbms
Ch 2-introduction to dbmsCh 2-introduction to dbms
Ch 2-introduction to dbms
 
Digital data
Digital dataDigital data
Digital data
 
Digital Types
Digital TypesDigital Types
Digital Types
 
Week 9
Week 9Week 9
Week 9
 
File_Organization_112014
File_Organization_112014File_Organization_112014
File_Organization_112014
 
Data Management for Undergraduate Researchers
Data Management for Undergraduate ResearchersData Management for Undergraduate Researchers
Data Management for Undergraduate Researchers
 
File Processing System
File Processing SystemFile Processing System
File Processing System
 
Best practices data management
Best practices data managementBest practices data management
Best practices data management
 
20170222 ku-librarians勉強会 #211 :海外研修報告:英国大学図書館を北から南へ巡る旅
20170222 ku-librarians勉強会 #211 :海外研修報告:英国大学図書館を北から南へ巡る旅20170222 ku-librarians勉強会 #211 :海外研修報告:英国大学図書館を北から南へ巡る旅
20170222 ku-librarians勉強会 #211 :海外研修報告:英国大学図書館を北から南へ巡る旅
 
DBS Theory Week 1 including relationships and relational database
DBS Theory Week 1 including relationships and relational databaseDBS Theory Week 1 including relationships and relational database
DBS Theory Week 1 including relationships and relational database
 
File Management
File ManagementFile Management
File Management
 
ISBB_Chapter4.pptx
ISBB_Chapter4.pptxISBB_Chapter4.pptx
ISBB_Chapter4.pptx
 
UNIT machine learning unit 1,algorithm pdf
UNIT machine learning  unit 1,algorithm pdfUNIT machine learning  unit 1,algorithm pdf
UNIT machine learning unit 1,algorithm pdf
 

Recently uploaded

How to Build a Module in Odoo 17 Using the Scaffold Method
How to Build a Module in Odoo 17 Using the Scaffold MethodHow to Build a Module in Odoo 17 Using the Scaffold Method
How to Build a Module in Odoo 17 Using the Scaffold Method
Celine George
 
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
GeorgeMilliken2
 
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptxChapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
Mohd Adib Abd Muin, Senior Lecturer at Universiti Utara Malaysia
 
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama UniversityNatural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Akanksha trivedi rama nursing college kanpur.
 
writing about opinions about Australia the movie
writing about opinions about Australia the moviewriting about opinions about Australia the movie
writing about opinions about Australia the movie
Nicholas Montgomery
 
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdfবাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
eBook.com.bd (প্রয়োজনীয় বাংলা বই)
 
Life upper-Intermediate B2 Workbook for student
Life upper-Intermediate B2 Workbook for studentLife upper-Intermediate B2 Workbook for student
Life upper-Intermediate B2 Workbook for student
NgcHiNguyn25
 
Film vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movieFilm vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movie
Nicholas Montgomery
 
Liberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdfLiberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdf
WaniBasim
 
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
National Information Standards Organization (NISO)
 
DRUGS AND ITS classification slide share
DRUGS AND ITS classification slide shareDRUGS AND ITS classification slide share
DRUGS AND ITS classification slide share
taiba qazi
 
The History of Stoke Newington Street Names
The History of Stoke Newington Street NamesThe History of Stoke Newington Street Names
The History of Stoke Newington Street Names
History of Stoke Newington
 
Cognitive Development Adolescence Psychology
Cognitive Development Adolescence PsychologyCognitive Development Adolescence Psychology
Cognitive Development Adolescence Psychology
paigestewart1632
 
South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)
Academy of Science of South Africa
 
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat  Leveraging AI for Diversity, Equity, and InclusionExecutive Directors Chat  Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
TechSoup
 
Azure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHatAzure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHat
Scholarhat
 
Main Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docxMain Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docx
adhitya5119
 
BBR 2024 Summer Sessions Interview Training
BBR  2024 Summer Sessions Interview TrainingBBR  2024 Summer Sessions Interview Training
BBR 2024 Summer Sessions Interview Training
Katrina Pritchard
 
World environment day ppt For 5 June 2024
World environment day ppt For 5 June 2024World environment day ppt For 5 June 2024
World environment day ppt For 5 June 2024
ak6969907
 
The basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptxThe basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptx
heathfieldcps1
 

Recently uploaded (20)

How to Build a Module in Odoo 17 Using the Scaffold Method
How to Build a Module in Odoo 17 Using the Scaffold MethodHow to Build a Module in Odoo 17 Using the Scaffold Method
How to Build a Module in Odoo 17 Using the Scaffold Method
 
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
 
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptxChapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
 
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama UniversityNatural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
 
writing about opinions about Australia the movie
writing about opinions about Australia the moviewriting about opinions about Australia the movie
writing about opinions about Australia the movie
 
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdfবাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
 
Life upper-Intermediate B2 Workbook for student
Life upper-Intermediate B2 Workbook for studentLife upper-Intermediate B2 Workbook for student
Life upper-Intermediate B2 Workbook for student
 
Film vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movieFilm vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movie
 
Liberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdfLiberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdf
 
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
 
DRUGS AND ITS classification slide share
DRUGS AND ITS classification slide shareDRUGS AND ITS classification slide share
DRUGS AND ITS classification slide share
 
The History of Stoke Newington Street Names
The History of Stoke Newington Street NamesThe History of Stoke Newington Street Names
The History of Stoke Newington Street Names
 
Cognitive Development Adolescence Psychology
Cognitive Development Adolescence PsychologyCognitive Development Adolescence Psychology
Cognitive Development Adolescence Psychology
 
South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)
 
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat  Leveraging AI for Diversity, Equity, and InclusionExecutive Directors Chat  Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
 
Azure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHatAzure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHat
 
Main Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docxMain Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docx
 
BBR 2024 Summer Sessions Interview Training
BBR  2024 Summer Sessions Interview TrainingBBR  2024 Summer Sessions Interview Training
BBR 2024 Summer Sessions Interview Training
 
World environment day ppt For 5 June 2024
World environment day ppt For 5 June 2024World environment day ppt For 5 June 2024
World environment day ppt For 5 June 2024
 
The basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptxThe basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptx
 

Chap01 (ics12)

  • 1. Copyright @ IT Series www.itseries.com.pk CHAPTER 1: Data Basics COMPUTER SCIENCE 12 (MS Access and C)
  • 2. Copyright @ IT Series www.itseries.com.pk • Data & Information • Data Processing & its Activities • File, Record and Field • File Types from Usage Point of View • File Types from Functional Point of View • Organize Files on Storage Media • Problems in File Processing System • Database • Database System and its Components • Objectives of Database • Database Model • DBMS & its Objectives Topics
  • 3. Copyright @ IT Series www.itseries.com.pk • Features of DBMS • Advantages of DBMS • Disadvantages of DBMS Topics (continued)
  • 4. Copyright @ IT Series www.itseries.com.pk possible to perform mathematical operation on character values Data • Collection of facts and figures related to an object • Data may consist of text, numbers, images, sound and videos • Processed to produce useful information Importance of Data • Used by managers to perform effective and successful operations of management • Provides a view of past activities related to the rise and fall of an organization • Enables the organization to make better decision for future activities Example • The data of student may consist of Roll Number, Student Name, and marks of different subjects Object can be person, event or anything about which data is collected
  • 5. Copyright @ IT Series www.itseries.com.pk possible to perform mathematical operation on character values Information • Processed data • Organized • Meaningful • Useful • Used for making decisions • Data is used as input for processing and information is the output of this processing Example • The data of student can be processed to produce useful information such as: • Total Marks • Grade • Find the number of passed and failed students etc.
  • 6. Copyright @ IT Series www.itseries.com.pk possible to perform mathematical operation on character values Difference between Data and Information Data Information • Collection of raw facts and figures • Processed form of data • Used as input in the computer • Output of computer • Huge in its volume • Short in its volume • Difficult or even impossible to reproduce. For example, it is very hard to reproduce the data of census if it is lost • Easier to reproduce. For example, number of graduate citizens can be recalculated from the stored data • Used rarely • Used frequently • Does not dependent on information • Depends on data
  • 7. Copyright @ IT Series www.itseries.com.pk possible to perform mathematical operation on character values Data Processing or Operations on Data • Series of actions or operations are performed on data to get required output or result (Information) • Software is used to process data • Software convert the data into meaningful information Activities in Data Processing Activities Data Capturing Data Manipulation Managing output results
  • 8. Copyright @ IT Series www.itseries.com.pk possible to perform mathematical operation on character values Activities in Data Processing 1. Data Capturing • Process of recording the data in some form • Data is captured before it can be processed • Data may be recorded on source document • Source document may include: • Photographs, checks, or product label, brochures • Recording data directly into Computer • Provide a quick and efficient way to input data • Saves time • Increases accuracy
  • 9. Copyright @ IT Series www.itseries.com.pk possible to perform mathematical operation on character values Activities in Data Processing 2. Data Manipulation • Process of applying different operations on data • Classifying - The process of organizing data into classes or groups • Example - Data of college can be in two group → Data of student and Data of teacher • Calculation - The process of applying arithmetic operations( +, -, ÷ , ×) on data • Example - The total marks of student are calculated to find the grade • Sorting - The process of arranging data in logical sequence • Example - Name of students can be sorted according to obtained marks • Summarizing - Process of reducing a large amount of data in more concise form • Example - Data of students in class can be summarized to show number of passed and failed students
  • 10. Copyright @ IT Series www.itseries.com.pk possible to perform mathematical operation on character values Activities in Data Processing 3. Managing Output Result Performed on data after the data has been captured and manipulated • Storage - The process of retaining data on storage media such as hard disk for future use • Example - The student data is stored on the hard disk • Calculation - The process of accessing or fetching the stored data • Example - Student data can be retrieved from the hard disk any time to prepare result card • Communication - The process of transferring data from one location to another • Example - The result can be sent to the students via email • Reproduction - The process of copying or duplicating data • Data can be reproduced if different users need data at different locations
  • 11. Copyright @ IT Series www.itseries.com.pk possible to perform mathematical operation on character values Field, Record and File Field • A combination of one or more characters • Represents Smallest unit of data • Name of each field in a record is unique • Each field contains one specific piece of information • Example - The EmployeeID, Name, HireDate, JobTitle and Phone Record • A collection of related fields used as single unit • Example - An Employee’s record includes a set of fields that contains EmployeeID, Name, HireDate, JobTitle and Phone
  • 12. Copyright @ IT Series www.itseries.com.pk possible to perform mathematical operation on character values Field, Record and File File • A collection of related records used as single unit • Files are stored on different storage media such as hard disk, USB flash drive or optical disc (CDs and DVDs) Example • Employee file may contain the records of hundreds of Employees
  • 13. Copyright @ IT Series www.itseries.com.pk possible to perform mathematical operation on character values File Types from Usage point of View 1. Master File • Used to store the information that remains constant for a long period of time • Example – A college maintains a master file of all students • It is updated when any change in its contents is required • These files are never empty since they are created 2. Transaction File • Used to store the input data before processing • It may be temporary file • The data in transaction files is used to update the master files • It may exist until the master file is updated • It may also be used to maintain a permanent record of data about transaction • Example – A transaction file can be used to store the fee deposited by the student
  • 14. Copyright @ IT Series www.itseries.com.pk possible to perform mathematical operation on character values File Types from Usage point of View 3. Backup File • Used to take the backup of important data • Permanent file • Make additional copy of data • The data can be recovered from backup files if any data file is lost or damaged • Backup files are mostly created by using specific software (utility program)
  • 15. Copyright @ IT Series www.itseries.com.pk possible to perform mathematical operation on character values File Types from Functional Point of View • A file consists of file name and file extension • Name and extension of file is separated by dot (.) • The extension of a file is normally assigned by the software in which it is created 1. Program File • Contains the software instructions • File extensions: .exe or .com • Contains instructions that can be directly executed by the computer
  • 16. Copyright @ IT Series www.itseries.com.pk possible to perform mathematical operation on character values File Types from Functional Point of View 2. Data File • A type of file that contains data • Data files are created by the software being used • Different software store data in the data files using different formats • Data files is generally opened in the same software in which it is created • It can also be opened in different software that supports the format of that data file
  • 17. Copyright @ IT Series www.itseries.com.pk possible to perform mathematical operation on character values File Organization A technique for physically arranging records of file on secondary storage devices 1. Sequential Files • Records are stored on the storage media in a sequence • Records can be retrieved only in sequence in which they were stored • Major disadvantage is very slow access time for a particular record
  • 18. Copyright @ IT Series www.itseries.com.pk possible to perform mathematical operation on character values File Organization 2. Direct or Random Files • Records are not stored in a particular sequence • The records are stored at known address or location • The address or location is calculated against the value of the key field of the record • Synonym problem→ If the same address is calculated to store two or more records • Faster than sequential file organization for finding a particular record • Storage media for direct file organization are hard disk , optical discs( CDs, DVDs)
  • 19. Copyright @ IT Series www.itseries.com.pk possible to perform mathematical operation on character values File Organization 3. Indexed Sequential Files • Records are stored in ascending or descending order based on value called key • An index value is generated for each key and mapped with the record • Index refers to the location or address on a disk where a record is stored • The index is stored in a file called index file • Index file contains the value of : • Each key field • Disk address of record with corresponding key field • Index file is updated whenever a record is added or deleted from the file • Main advantage • Allows for both random and sequential processing • Main disadvantages • Extra space is required to store indexes • Extra time necessary to access and maintain indexes
  • 20. Copyright @ IT Series www.itseries.com.pk possible to perform mathematical operation on character values File Processing System • This system is used by different organization to store and manage data • Each department has its own set of data files and application program • Each program defines and manages its own data • Every Process generate its separate files and does not communicate with each other Example
  • 21. Copyright @ IT Series www.itseries.com.pk Problems in File Processing System Data Redundancy Duplication of data in multiple files Example Suppose that two files are used in a college. The Students file contains the data such as RollNo, Name, Address, Phone and other details of the students. The Library file contains the same data of the students who borrow books from library along with the information about the book. The data of one student appears in two files. It causes wastage of storage and creates many problems.
  • 22. Copyright @ IT Series www.itseries.com.pk Problems in File Processing System Example The address of a student must be updated in all files if any change occurs. It is possible that it is changed in Students file but not in Library file. The data becomes inconsistent in this situation. Data Inconsistency Two files many contain different data about the same thing.
  • 23. Copyright @ IT Series www.itseries.com.pk Problems in File Processing System Example If there is a change in the length of postal code, it requires change in the program. The changes may be costly to implement. Program Dependence The application program has to be changed if the format of file is changed.
  • 24. Copyright @ IT Series www.itseries.com.pk Problems in File Processing System Example Suppose a students report is required in the college. The data will be collected from various files to prepare the report. It requires a lot of time and effort to write program for such types of reports in file processing system. Lack of Flexibility Combined reports are very difficult to display as data is scattered in different files.
  • 25. Copyright @ IT Series www.itseries.com.pk Problems in File Processing System Example RollNo and Marks of the students should be numeric value. It is very difficult to apply these constraints on files in file processing system. Data Integrity Problem Integrity means reliability and accuracy of data
  • 26. Copyright @ IT Series www.itseries.com.pk Problems in File Processing System Example A data entry operator should only be allowed to enter data. The chairman of the organization should be able to access or delete the data completely. Such types of security options are not available in file management system. Lack of Data Security It is not possible to define different access levels for different users.
  • 27. Copyright @ IT Series www.itseries.com.pk Problems in File Processing System Limited Data Sharing The file processing system provides a limited data sharing Each application has its own data files. It is very difficult for one application program to access the data from a file that is created by other application program. The file processing system also provides very limited data sharing among different users.
  • 28. Copyright @ IT Series www.itseries.com.pk possible to perform mathematical operation on character values • Collection of logically related data sets or files • Each data set or file may contain different kind of information Example – Client Database of Bank have different files:  Saving Accounts  Current Accounts  Automobile Loan  Personal Loan  Clients Information etc. Facilities Provided by database System Database Inserting data Adding new files Removing existing files Retrieving data Updating data Deleting data
  • 29. Copyright @ IT Series www.itseries.com.pk possible to perform mathematical operation on character values Objective of Database 1. Data Integration • An efficient approach to utilizing data • Data integration involves combining data located in different computers and providing users with a unified view of them • Logically, data is centralized
  • 30. Copyright @ IT Series www.itseries.com.pk possible to perform mathematical operation on character values Objective of Database 2. Data Integrity • Reliability & accuracy of data • Rules are designed to keep data consistent and correct • Enforcing data integrity ensures the quality of data • Example • Same Employee ID is not assigned to multiple employees 3. Data Independence • Data and application programs are separate from each other • User can change data storage structure without changing the application program • The user can also modify programs without affecting data
  • 31. Copyright @ IT Series www.itseries.com.pk possible to perform mathematical operation on character values • Collection of data as well as program required to manage that data • Computerized record-keeping system Purpose • Maintain data • Provide it to the user when it is required Database System
  • 32. Copyright @ IT Series www.itseries.com.pk possible to perform mathematical operation on character values 1. Data • Main purpose of database system is: • To store data • To maintain data • To Process data Components of Database System
  • 33. Copyright @ IT Series www.itseries.com.pk possible to perform mathematical operation on character values 2. Hardware • Physical components of computer • Used to perform different tasks such as input, output, storage and processing • Example of Hardware components • Secondary storage • I/O devices • Processors • Main memory Components of Database System
  • 34. Copyright @ IT Series www.itseries.com.pk possible to perform mathematical operation on character values 3. Software • Collection of programs used by the computer within database system • DBMS • Use to create and manage a database in database system • Application Program • Used to access and process the data stored in database • Operating System • Manage all hardware components • Enables all other software to run on the computer Components of Database System
  • 35. Copyright @ IT Series www.itseries.com.pk possible to perform mathematical operation on character values 4. Personnel • People related to the database system • Database Administrator (DBA) • Person who is responsible to manage the whole database system • Application Programmer • Person who writes the application program to access data from database • End Users • Persons who perform different operations on database • Access DBMS through Application program Components of Database System
  • 36. Copyright @ IT Series www.itseries.com.pk possible to perform mathematical operation on character values • A set of rules and standards that define how the database organizes data Data Models Types of Models Hierarchical Model Network Model Relational Model
  • 37. Copyright @ IT Series www.itseries.com.pk possible to perform mathematical operation on character values 1. Hierarchical Model • Records are arranged in a hierarchy like an organizational chart • Each record type is called a node or segment • Node represents a particular entity • Topmost node is root • Use Parent /Child relationship • Each parent node can have many child nodes • Each child node may have only one parent node • One-to-many relationship between data entities • Kind of structure → Inverted tree Data Models
  • 38. Copyright @ IT Series www.itseries.com.pk possible to perform mathematical operation on character values 2. Network Model • Similar to hierarchical model but one difference • A child node may have any number of parent nodes • Child nodes represented by arrows • Complex diagram to represent a database • Provides more flexibility than hierarchical model Data Models
  • 39. Copyright @ IT Series www.itseries.com.pk possible to perform mathematical operation on character values 3. Relational Model • Most commonly used database model • More flexible than hierarchical and network database model • Consists of a collection of simple relations or tables • Relation represents a particular entity to store information about entity • Relationships are based on the data of the entities • Relationship between entities is represented by diagram Data Models
  • 40. Copyright @ IT Series www.itseries.com.pk possible to perform mathematical operation on character values • Collection of programs used to create, maintain, and access databases in convenient and efficient manner • DBMS uses Database Manager • Software • Controls the overall structure of database • Some Relational DBMS vendors/products like: • Access & SQL Server/MS , MySQL, Oracle ..etc DBMS Convenient Data is stored in such a way that the user can use this data easily Efficient The user can search the required data quickly
  • 41. Copyright @ IT Series www.itseries.com.pk possible to perform mathematical operation on character values 1. Shareability • Data is shared by different people at the same time • Data is stored at central place • Different users can share the data from different locations • Reduce storage space and provides data consistency 2. Availability • Users must be able to access data and DBMS easily • Data should be available when it is required Objectives of DBMS
  • 42. Copyright @ IT Series www.itseries.com.pk possible to perform mathematical operation on character values 3. Evolvability • Provide the facility to change the database due to • Increase in user requirements or change in the technology 4. Database Integrity • Accuracy of Data • Quality of data entered determines the quality of generated information Objectives of DBMS
  • 43. Copyright @ IT Series www.itseries.com.pk possible to perform mathematical operation on character values Features of DBMS Data Dictionary Utilities Query Language Report Generator Access Security Backup and Recover
  • 44. Copyright @ IT Series www.itseries.com.pk possible to perform mathematical operation on character values 1. Data Dictionary / Repository • Contains data definitions for a database: • Data Definition is the process of describing the properties of data to be included in a database table • During data definition, each field is assigned: • Name (must be unique within the table) • Data type (such as Text, Number, Currency, Date/Time) • Properties (field size, format of the field, allowable range, if field is required, etc.) • Finished specifications for a table become the table structure • Ensures that data is according to the data definition rules • Used for data access authorization (Password, etc) for database users Features of DBMS
  • 45. Copyright @ IT Series www.itseries.com.pk possible to perform mathematical operation on character values 2. Utilities • Programs used to maintain database • Some of these programs are also used for backup and recovery of data 3. Query Language • A query is a request for specific data from the database • A query language consists of simple, English-like statements that allow users to specify the data to display, print, store, update, or delete Structured Query Language (SQL) is a popular query language that allows users to manage, update, and retrieve data Features of DBMS
  • 46. Copyright @ IT Series www.itseries.com.pk possible to perform mathematical operation on character values 4. Report Generator / Report Writer • Program that is used to generate reports • Retrieves data from database and displays it to the user in different formats • Produce useful and attractive reports by using report generator 5. Access Security • Protection of database from unauthorized access • DBMS provides several procedures to maintain data security • Allowing access to the database through the use of username and passwords • Different users have different levels of access rights to database • A data entry operator should only be allowed to enter data • The chairman of the organization should be able to access or delete the data completely Features of DBMS
  • 47. Copyright @ IT Series www.itseries.com.pk possible to perform mathematical operation on character values 6. Backup and Recover • DBMS Provides the facility of backup and recover • Backup facility is used to store an additional copy of data • Data can be recovered from backup file • if the original data file is lost or damaged Features of DBMS
  • 48. Copyright @ IT Series www.itseries.com.pk possible to perform mathematical operation on character values 1. Data Independence • Data and application programs are separate from each other • User can change data storage structure without changing the application program • The user can also modify programs without affecting data 2. Redundancy Control • Redundancy means duplication of data in multiple files → causes wastage of storage • The data in database appears only once and is not duplicated • The same data is used at all required places Advantages of DBMS
  • 49. Copyright @ IT Series www.itseries.com.pk possible to perform mathematical operation on character values 3. Consistency Constraints • Allows user to design complex data structures • Enables users to view and access data in different ways 4. Data Security • Protection of database from unauthorized access • DBMS provides several procedures to maintain data security • Allowing access to the database through the use of username and passwords • Different users have different levels of access rights to database • A data entry operator should only be allowed to enter data • The chairman of the organization should be able to access or delete the data completely Advantages of DBMS
  • 50. Copyright @ IT Series www.itseries.com.pk possible to perform mathematical operation on character values 5. Backup and Recover • DBMS Provides the facility of backup and recover • Backup facility is used to store an additional copy of data • Data can be recovered from backup file • if the original data file is lost or damaged. 6. Advanced Capabilities • Provides advance capabilities • Online access - Access data through Internet Advantages of DBMS
  • 51. Copyright @ IT Series www.itseries.com.pk possible to perform mathematical operation on character values 1. High Cost of DBMS • Expensive to purchase database management software e.g. Oracle 2. Higher Hardware Cost • DBMS Software requires powerful hardware to work properly and efficiently • Requires large size memory and high speed processor 3. Appointing Technical Staff • DBMS is a complex system • Technical staff such as database administrator and application programmer is required to manage DBMS • Pay good salaries to the technical staff increases cost Disadvantages of DBMS
  • 52. Copyright @ IT Series www.itseries.com.pk possible to perform mathematical operation on character values 4. Cost of Staff Training • DBMS is a complex system • Requires trained user to use it properly • Use training is required in all fields: • Programming • Application development • Database administrator • Spend a lot amount for staff training Disadvantages of DBMS
  • 53. Copyright @ IT Series www.itseries.com.pk possible to perform mathematical operation on character values 5. Problem in Wrong Database Environment • The problems may occur if wrong type of database environment is selected • The database system may also need to change due to change in requirements • The change can be costly due to conversion and testing • Difficult and time-consuming process • Require a lot of cost to implement the changes 6. Need of Data Dictionary • Useful tool but expensive • Requires installation costs as well as hardware requirements Disadvantages of DBMS
  • 54. Copyright @ IT Series www.itseries.com.pk