Professional Documents
Culture Documents
National University of Modern Languages - NUML: (Department of Computer Science)
National University of Modern Languages - NUML: (Department of Computer Science)
Languages - NUML
(Department of Computer Science)
Mr. Muhammad Nouman Farooq
BSC-H (Computer Science)
MS (Telecomm. and Networks)
Honors:
Magna Cumm Laude Honors Degree
Gold Medalist!
Assignments 5 % (5 Marks)
2
Course Outline – Theory
Course Title: Introduction to Database Systems
Course Code: ACS-203
Credit Hours: 4 (3+1)
3
Course Outline – Theory
4
Academic Honesty
Your work in this class must be your own
5
Few Things to Remember!!
Attendance will be taken with in 10 minutes at the start of class
Students are allowed to enter into class with in 10 minutes at the starting
of class
Zero tolerance policy on attendance, discipline of class during lectures!
Assignments must be submitted on time, no late submissions
In case of copied assignment both parties will be given zero!
Projects, Presentation, Quizzes, Assignments, Class participation are very
important.
Don’t miss your Classes, Quizzes, Presentations, Assignments and
Projects!
6
Introduction to Database Systems
Introduction to Databases
Lecture# 1
7
Recommended Books
8
Lecture 1: Introduction to Databases
Database Definitions
Data Models
Importance of Databases
Database Users
9
Jonathan Abrams Friendster fails due to Mark Zuckerberg Facebook did not fail
not optimized and efficient Database due to optimized and efficient Database 10
System System
11
Introduction to the Course
12
Introduction
This course is first (fundamental) course on database systems.
13
Continued…
1) Database design and application development:
How do we represent a real-world system in the form of a
database?
14
Continued…
16
Database Definitions
17
Continued…
18
Continued…
Each of the above given definition are correct, and describe
database from slightly variant perspectives.
19
Database
Another Important thing that you should be very clear about is the
difference between database and the database management system
(DBMS).
22
Data and Information
Data is the collection of raw facts collected from any specific
environment for a specific purpose.
24
Continued…
If we consider the data in the previous figure without the titles or the
labels associated with the data (EmpName, age, salary) then; it is not
much useful.
25
Continued…
There could be infinite examples, there could be so many facts about
each thing that we are storing data about.
26
Continued…
Think of a food, like, Karhahi Gosht, the facts about Karhahi Gosht
that a cook will like to store may be, quantity of salt, green and red
chilies, garlic, water, time required to cook and like that.
27
Database Management System
28
Continued…
29
Database Systems
30
Data Models
31
32
33
34
35
36
37
38
39
40
Flat File Vs. Relational Database System
41
Flat File Vs Relational Database System
The flat file design puts all database information in one table, or
list, with fields to represent all parameters.
A flat file may contain many fields, often, with duplicate data that
are prone to data corruption.
42
Continued…
If you decide to merge data between two flat files, you need to
copy and paste relevant information from one file to the other.
If you have two or more flat files that contain client addresses, for
example, and a client moved, you would have to manually modify
the address parameters in each file that contains that client’s
information.
43
Relational Database System
44
Importance Of Database
45
Importance Of Database
Databases are important; why?
That is, these applications mainly store the data in the computer
storage, then access and present it to the users in different formats
(also termed as data processing) for example, banks, shopping,
production, utilities billing, customer services and many others.
47
Continued…
From the previous examples, the commercial applications exist in the day
to day life and are related directly with the lives of common people.
48
Introduction to File Processing Systems
49
File Processing System
50
File Processing System
51
File Processing System
52
Continued…
The main point being highlighted is the program and data
interdependence, that is, program and data depend on each
other, well they depend too much on each other.
53
Continued…
The systems (even the file processing systems) are created after
a very detailed analysis of the requirements of the organizations.
There could be many reasons, mainly being that the users get the
real taste of the system when it is established.
54
Continued…
55
Continued…
Now, it could be slightly and (unfortunately) sometimes very
different from what they expected or wanted it to be.
57
Continued…
The change in the data in one system sometimes is not
reflected in the same data stored in other system.
58
Continued…
59
Advantages of Database Approach
60
Database System Environment
It will be helpful to reiterate our database definition here, that is,
“Database is a shared collection of logically related data,
designed to meet the information needs of multiple users in an
organization”
61
Continued…
62
Continued…
The figure shows different subsystem or applications in an
educational institution, like library system, examination system,
and registration system. There are separate, different application
programs for every application or subsystem.
However, the data for all applications is stored at the same place
in the database and all application programs, relevant data and
users are being managed by the DBMS.
63
1-Data Sharing
64
Continued…
65
2-Data Independence
Data and programs are independent of each other, so change in one has
no or minimum effect on other
3-Controlled Redundancy
Means that we do not need to duplicate data unnecessarily;
we do duplicate data in the databases; however, this duplication is
deliberate and controlled.
66
4-Data Integrity:
Very important feature; means the validity of the data being entered in
the database. Since the data is being placed at a central place and being
managed by the DBMS, so it provides a very helpful to check or ensure
that the data being entered into the database is actually valid.
67
5-Better Data Security
All application programs access data through DBMS, So
DBMS can very efficiently check that which user is
performing which action and accessing which part of
data.
68
6-Faster Development of new Applications
69
7-Better Concurrency Control
Concurrency means the access of database form as number of points
simultaneously.
Concurrency Control means to access the database in such a way
that all the data accesses are completed correctly and
transparently.
71
8-Better Backup and Recovery Facility
Some time happens that a database which was in use and very
important transactions were made after the last backup was made,
all of a sudden due to any disastrous situation the database crashes
(improper shutdown, invalid disk access, etc.)
72
Database Users
73
Database Users
Users of Database Systems:
1) Application Programmers
2) End Users
Naive User
Sophisticated User
74
1) Application Programmers
This category of database users contains those people who create
different types of database application programmer.
75
2) End Users
Second category of the Database users are the end
users, this group of users contains the people who use the
database application programs developed by the Application
programmers.
Naïve User
This category of users is that category who simply use
the application database programs created by the
programmers.
76
Continued…
Sophisticated User
This type of users has some additional rights over the
Naïve users, which means that they can access the data
stored in the database any of their desired way. They can
access data using the application programs.
Moreover, such users should be skilled enough to be
able to get data from database without damaging the
data in database.
77
Recommended Readings
Chapter 1 from: -
78
Summary of Lecture
➦ Lecture 1
Database Definitions
Importance of Databases
Data Models
Database Users
79
END OF LECTURE 1
80