Professional Documents
Culture Documents
Applicant
Data Database User 2
Student Management
Data System
Course
Data Online User
Faculty
data
Application
Database
DBA
Database administrator is the person
responsible for analyzing ,
designing ,implementing and
maintaining database
Roles (Users) in DBMS
Environment
Many individuals and groups are
involved in the operations to
database
Generally, we could categorize them
into three type of users according to
their role
1. End users
2. Application Programmers
3. Database Administrators
End User Application
DBA
Programmer
Naive Casual
Database
End Users
The database is designed, created and
maintained to serve the information
needs of End Users
Casual Users are trained to use the
query languages
Naïve users access the data through
application program that are written for
them
Application Programmer
This group include the programmers
who write application for others
Each program that access the
database contain SQL for data
management system
Database Administrator
Person or group responsible for
designing, creating and
maintaining database
Control accesses of information about
data
Introduction to course
Basic Database concepts
Implementation of database
Advanced topics
Importance of Studying DBMS
Core subject of Computer Science
Able to analyze and design database
Work as a DBA
Could appear in certification
FILE PROCESS SYSTEMS
VRS.
DATABASE TECHNOLOGY
File Processing Systems
Computer store, manipulate and
retrieve large files of data
Typically each department has its own
set of applications and files, designed
specifically for those applications
Still widely used method
File Processing System
#include<fstream>
#include<stdlib>
int main(){
ifstream hFile("File.txt",ios::in);
if(!hFile){
cerr<<"File cannot open";
exit(1); }
int account;
char name[30];
float balance;
cout<<"Account\t"<<"Name\t"<<"Balance\n";
while(!hFile.eof()){
hFile>>account>>name>>balance;
cout<<account<<"\t"<<name<<"\t"<<balance<<endl;
}
getch();
return 0;
}
Files University Environment
Output
Programs (Software)
Student Applied
Merit calculation Merit List
Program
Course Data
Student Scheduling
Class List
Dean Faculty
Data Faculty Scheduling Final Faculty
Schedule
Faculty Payroll Payroll
data Pay Checks
Limitations
Program-Data Dependence
File Descriptions are stored within each
application program
Any change to the file structure requires
changes to all programs that access the
file
Limitations
Duplication of Data
Unplanned data files cause lot of
duplicate data
This duplication requires additional
storage space and effort to keep all
files up to date
Duplication of data is called data
redundancy
Limitations
Limited Sharing
Each application has its own private file
This cause limited sharing of data
outside their own application
Cause a lot of problems for
managerial decisions
Limitations
Lengthy Development Times
Little opportunity to leverage previous
development effort
Each new file requires developers start
from scratch
Excessive Program Maintenance
Database Approach
Database approach emphasizes the
integration and sharing of data
throughout the organization
University Environment
Database Programs Output
Merit calculation Merit List
Program
Student Applied
Programs
Programs Output
atabase
Student Applied
Conceptual Schema
Physical Schema
Conceptual Schema
Sometimes called Logical Schema
Define the stored data in terms of
data model
RDBMS describe all relations(Tables)
that are stored on computer
Conceptual Schema
In University environment we may have
tables of:
Students(sid,name,login,age,gpa),
Faculty(fid,fname,sal)
Courses(cid,cname,credits),
Rooms(rno,address,capacity)
Arriving at a good conceptual schema is
called conceptual database design
Physical Schema
Physical Schema define the storage
details
Data is stored on computer in the form
of 0 and 1
Data Structures and indexes are use
at this level
External Schema
External view for the end users of Database is
called external schema
Sometimes generated in terms of Data
Model
DBMS have to process one or more
relations(Tables) to generate external views
Consider the query in university environment:
Who is teaching algorithms to Ali?
Data Independence
In conventional system we must know
following :
1. What is the format of data?
2. Where is it located?
3. How is it accessed?
Use of data without its representation
details is called data independence
Data Independence
Changes made in the storage of data
access methods should not effect the
external model
Changes made to the conceptual
model should not effect the external
model
Data Independence
Two levels of data independence which we
have to achieve:
Level 1:Physical Data Independence
Change made in the storage of data access
methods should not effect the external
model
Level 2: Logical Data Independence
Changes made to the conceptual model
should not effect the external model