Database Systems Lecture 1
Database Systems Lecture 1
CPE2102
Lectures
Practicals
Discussions
21/08/2024 16:43 3
MODE OF ASSESSMENT
Database and
Management System
21/08/2024 16:43 5
DEFINITIONS
Data: Refers to raw facts that can be recorded and which
have implicit meaning.
Example:
• Customer ----
1.cname.
2.cno.
3.ccity.
21/08/2024 16:43 6
DEFINITIONS…
Data…
For example:
Report card sheet
The information is needed for the following reasons:
• To gain knowledge about the surroundings.
• To keep the system up to date.
• To know about the rules and regulations of the society.
21/08/2024 16:43 8
DEFINITIONS…
Knowledge: Knowledge implies familiarity, awareness and
understanding of information as it applies to an environment.
• A key characteristic of knowledge is that ‘new’ knowledge can be
derived from ‘old’ knowledge.
• The human mind purposefully organizes the information and
evaluates it to produce knowledge.
21/08/2024 16:43 10
DEFINITIONS…
21/08/2024 16:43 11
DATA MANAGEMENT
• This is a discipline that focuses on the proper generation, storage
and retrieval of data.
21/08/2024 16:43 13
PURPOSE OF DATABASE SYSTEMS
21/08/2024 16:43 14
PURPOSE OF DATABASE SYSTEMS…
• One way to keep the information on a computer is to store it in
operating system files. To allow users to manipulate the information,
the system has a number of application programs that manipulate the
files, including programs to:
Add new students, instructors, and courses
Register students for courses and generate class rosters
Assign grades to students, compute grade point averages (GPA),
and generate transcripts
• Thus, as time goes by, the system acquires more files and
more application programs.
21/08/2024 16:43 17
PURPOSE OF DATABASE SYSTEMS…
• This typical file-processing system is supported by a
conventional operating system.
21/08/2024 16:43 20
FILE-BASED DATA MANAGEMENT SYSTEM...
• Easy to use
• Inexpensive
• Faster performance
• Suitable for personal data management
21/08/2024 16:43 21
FILE-BASED DATA MANAGEMENT SYSTEM...
Example
• Suppose that one of the company clerks needs to find out the
names of all employees who live within a particular postal-code
area.
Concurrent-access anomalies.
• For the sake of overall performance of the system and faster response,
many systems allow multiple users to update the data simultaneously.
Indeed, today, the largest Internet retailers may have millions of
accesses per day to their data by shoppers.
• In such an environment, interaction of concurrent updates is possible
and may result in inconsistent data. To guard against this possibility,
the system must maintain some form of supervision.
• But supervision is difficult to provide because data may be accessed
by many different application programs that have not been coordinated
previously.
21/08/2024 16:43 26
DISADVANTAGES OF FILE-BASED SYSTEMS…
21/08/2024 16:43 30
DISADVANTAGES OF FILE-BASED SYSTEMS…
• Each file must have its own file management program that
allow the user to add, modify and delete records; to list the
file contents and to generate reports.
21/08/2024 16:43 31
DEFINITIONS…
Record/ Tuple: Collection of related data items.
21/08/2024 16:43 34
Database…
Consider the following collection of tables:
21/08/2024 16:43 35
Database…
• We have a collection of 4 tables. They can be called a
“related collection” because we can clearly find out that there
are some common attributes existing in a selected pair of
tables.
• Because of these common attributes we may combine the
data of two or more tables together to find out the complete
details of a student.
• Questions like “Which hostel does the youngest student live
in?” can be answered now, although Age and Hostel attributes
are in different tables.
21/08/2024 16:43 36
Database…
• A database in a DBMS could be viewed by lots of different
people with different responsibilities.
21/08/2024 16:43 37
Database…
Example
• Within a company there are different departments, as well as customers,
who each needs to see different kinds of data.
• Each employee in the company will have different levels of access to the
database with their own customized front-end application.
• NB: All the data items within a single attribute/column are of the same
data type.
21/08/2024 16:43 38
DEFINITIONS…
DATABASE SERVERS
21/08/2024 16:43 39
TYPES OF DATABASES
Centralized databases.
• A centralized database is one that operates entirely within a
single location such as a central computer.
Cloud Databases.
• Here data is stored on a local hard drive or server, but the
information is available online.
• This makes it easy to access your files from anywhere, as
long as you have an Internet connection.
• To use a cloud database, users can either build one
themselves or pay for a service to store their data for them.
• Encryption is an essential part of any cloud database, as all
information needs to be protected as it is transmitted online.
21/08/2024 16:43 41
TYPES OF DATABASES…
Commercial Databases.
• A commercial database is a feature-rich database that is
designed by a commercial businesses to sell to their
customers.
21/08/2024 16:43 42
TYPES OF DATABASES…
Distributed Databases.
• A distributed database is basically a database that is not
limited to one system, it is spread over different sites, i.e.,
on multiple computers or over a network of computers.
• A distributed database system is located on various sites
that don’t share physical components.
• This may be required when a particular database needs to
be accessed by various users globally.
• It needs to be managed such that for the users it looks like
one single database.
21/08/2024 16:43 43
TYPES OF DATABASES…
End-user Databases.
• End-user is a term used in product development that
refers to the person who uses the product.