DB Lecture 01
DB Lecture 01
Babar Jehangir
Course Description
This is an introductory course to database, its main
aim is to introduce database to students as the heart
of most business applications. The course focuses
on database design, modeling and database
language SQL.
Books:
– Database Systems, Thomas Connolly & Carolyn Begg, 4th
Edition, ,2008.
Modern Database Management, Jeffrey A. Hoffer, Mary B.
Prescott , null Edition, ,2008.
– Database Systems Models, Languages, Design, and
Application Programming. 6th edition, Ramez Elmasri &
Shamkant Navathe.
– Fundamentals of Database Systems, Elmasri and Navathe
Course Objectives
– Introduce the concept of DBMS and its purpose.
– Introduce the main concepts in a Database (Tables, records,
fields, primary key, foreign key, relation etc.)
– Learn how to design a logical database model, convert the
logical database designs to physical designs (Mapping), and
develop the physical database.
– Enhance the student's modeling and abstraction skills.
– Introduce the concepts of Entities, Attributes and Relations.
– Introduce Relational algebra and SQL.
– Introduce the concept of normalization theory (1NF, 2NF, and
3NF).
– Enable students to build a desktop application with a database.
– Enhance students skills including: team working, problem-
solving, and self-learning.
Chapter 1:
Introduction to Databases
Data duplication
– Waste storage
– Vulnerable to data inconsistency
Database Approach
A single repository maintain data defined once
and accessed by various users
Registration Examination
System Library System
System
DBMS
University
Student DB
Main Characteristics of the Database
Approach
Self-describing nature of a database system: A
DBMS catalog stores the description of the
database. The description is called meta-data. This
allows the DBMS software to work with different
databases.
Insulation between programs and data: Called
program-data independence. Allows changing
data storage structures and operations without
having to change the DBMS access programs.
Main Characteristics of the
Database Approach
Data Abstraction: A data model is used to hide
storage details and present the users with a
conceptual view of the database.
1. Database Administrators:
– A Database Administrator (DBA) is responsible
for authorizing access to the database,
coordinating and monitoring its use, and acquiring
software and hardware resources as needed.
– The DBA is accountable for problems such as
– Security breaches
1. Database Responsibilities
– Software installation and Maintenance
– Data Extraction, Transformation, and Loading
– Security
– Authentication etc…
Actors in a Large Database
2. Database Designers:
– Responsible for identifying the data to be stored
in the database and for choosing appropriate
structures to represent and store this data.
3. End Users:
– Are people whose job require access to the
database for querying, updating, and generating
reports.
– The database primarily exists for this use.
Actors in a Large Database
What to get
DBMS Maintain DB
Administrator
How to get date
Database DB Designer
Design
Data Users
Advantages - Using the DBMS Approach
Controlling Redundancy
– Redundancy is to store the same data in
different files for no need. Redundancy caused
TFPs to waste storage space, to require
duplication of effort for multiple updates (waste
time), and to perhaps show inconsistent data.
– Inconsistency is to show different values for the
same data item in different places.
Advantages - Using the DBMS Approach
Flexibility
– DBMS allows for some changes to the structure of the
database with minimum affect or without affecting the
stored data and the existing application programs.
– However, in TFP approach any changes in the data
structure requires corresponding changes in both file
structure and applications programs.
Thanks