Professional Documents
Culture Documents
Database Systems: University of Gujrat
Database Systems: University of Gujrat
LECTURE #:01
M. Shafiq
FACULTY OF CS & IT
UNIVERSITY OF GUJRAT
Contents
Introduction
Database basics
Data modeling: entity-relationship approach
Relational data model
Relational algebra
SQL
Constraints and triggers
Transactions, security, and authorization in SQL
2
Contents (cont’d)
Data-storage and index structures
Recovery
Concurrency control
Query execution
Distributed databases
3
Prerequisites
Data structures
Knowledge of discrete mathematics and
predicate logic
Sufficient ability to program
4
Course Textbook
Database Systems: The Complete Book, by
Hector Garcia-Molina, Jeffrey D. Ullman, and
Jennifer Widom, Prentice Hall.
Database Systems: Design, Implementation, and
Management, Fifth Edition, Rob and Coronel
Fundamentals of Database Systems by Elmasri
and Navathe, Fifth Edition
5
Assignments
Reading assignments:
Chapter 1
otherwise specified.
For the collaborative problems, you may form
6
Project
All students are required to complete a
course project
The details will be announced.
You need to start forming project teams
Talk to your classmates
7
Grading
Quizzes 05%
Assignments 05%
Project 15%
Midterm 25%
Final exam 50%
8
Topic #1:
A Brief Introduction to DBMS:
The Big Picture
9
Database
Is the collection of logically related data
files organized in an efficient an compact
manner.
What is Logical collection ?
What is meant by File ?
10
An Example of a Database
STUDENT: Name StudentNumber Class Major
Smith 17 1 CSC
Brown 8 2 ECE
Green 24 2 CSC
White 37 1 CSC
Stored Database
Stored
Definition
Database
(Meta-Data)
12
Database Management System
Specialized software
Buy, install, set up for particular application
Available for PC’s, workstations, mainframes,
supercomputers
Is expected to:
Allow users to create new databases (schema)
Give users the ability to query/modify the data
Support the storage of very large amounts of data
Control access to data from many users at once
13
Database Management System
(cont’d)
Major vendors/products:
Oracle
IBM (DB2)
14
Example: Banking System
Data = information on accounts,
customers, balances, current interest
rates, transaction histories, etc
15
Example
MR.A at ATM: withdraw Rs1000 from account
#55
Get balance from database
dispense cash
16
Example (3 of 4)
MR.B at ATM2: withdraw Rs 500 from account
#55
Get balance from database
balance := balance – 50
dispense cash