lecture 1-1
lecture 1-1
INTRODUCTION TO
DATABASES(CT-494)
• Academic
– Databases involve many aspects of computer
science.
– Fertile area of research.
• Programmer
– Lots of applications involve using and accessing
databases.
• Businessman
– Everybody needs databases => lots of money to be
made.
What Will You Learn ?
• Implementation
– How do you build a system ?
• Design
– How do you model your data and structure your information in a
database?
• Programming
– How do you use the capabilities of a DBMS?
Business
Education
Industry
Health
Database system example
Large database system
File-based system
Library
Examination Registration
Reg_Number Reg_Number Reg_Number
Name Name Name
Father Name Address Father Name
Books Issued Class Phone
Fine Semester Address
Grade Class
EXAMPLE OF FILE BASED APPROACH
Consider the effort that would be required to
answer the following questions:
What three-bedroom properties do you have for sale
with a garden and garage?
What flats do you have for rent within three miles of
the city center?
What is the average rent for a two-bedroom flat?
What is the total annual salary bill for staff?
What is the expected monthly turnover for the next
financial year?
Disadvantages of File Processing System
Duplicate Data
Inconsistency
Accessing Anomalies
Atomicity Problem
Data Isolation
What is Database?
What is a Database?
Data
Facts, figures, statistics etc. having no particular
meaning (e.g. 1, abid, 19 etc).
Record
Collection of related data items, e.g.
Roll no. Name Age
1 Abid 19
Information
Data that have been processed and presented in a
form suitable for human interpretation
What is Database ?
Collection of data.
Benefits of Views:
Reduce complexity
Provide a level of security
Provide a mechanism to customize the appearance of
the database
Present a consistent, unchanging picture of the
structure of the database, even if the underlying
database is changed
Components of DBMS Environment
Hardware
It can range from a PC to a network of computers.
Software
DBMS, operating system, network software (if necessary) and also the
application programs.
Data
Used by the organization and a description of this data called the schema.
Procedures
Instructions and rules that should be applied to the design and use of the
database and DBMS.
People
Includes database designers, DBAs, application programmers, and end-
users.
Role in the Database Environment
Database Administrators (DBA)
Authorizing access to the database
Coordinating and monitoring its use
Maintain software and hardware resources
Database Designers
Identify the data to be stored and choose the appropriate
structure to represent and store the data
Application developer
Provide required functionality for the end-users
End Users
The end-users are the ‘clients’ for the database
ADVANTAGES OF DBMS
Database
Management
System
University
Students
Database