1 - Introduction To Database Systems
1 - Introduction To Database Systems
1 - Introduction To Database Systems
• The term DATA consists of unprocessed facts that are used in the
production of information and are suitable for making sense of. These
facts can be numeric, alphanumeric or symbols, or they can be graphical.
• INFORMATION is the result obtained by analyzing and processing the
data in order to make it meaningful to support the decision-making
process.
• Data is the source of information.
❖ Database design,
❖ Design and implementation of DBMSs,
❖ Analyzing the data in the database.
Advantage Disadvantage
The expense of DBMS hardware and software is
A database management system (DBMS) may store and
enormously expensive, which impacts your
retrieve data in a number of ways.
organization’s overall budget.
A database management system (DBMS) is a reliable
A database management system (DBMS) is inadequate
system for handling numerous applications requiring
for doing complex mathematical calculations.
identical data.
Since most database management systems are difficult
Data Integrity and Security are guaranteed by DBMS. and complicated, employees must always be instructed
on how to operate them.
The DBMS implements integrity constraints to provide
Many individuals using the same application at the
a high degree of protection against unauthorized
same time time potentially lead to data loss.
access to information.
• Data models define the data and database structure based on entities,
attributes of entities and relationships between entities.
• The used data model will answer the following questions regarding the
data to be kept in the system:
➢ How the data will be grouped and kept,
➢ Which groups will be related to each other,
➢ How to connect one group to another ,
➢ How will be defined the characteristics of the relations between
the groups (i.e. the student's grade in the course),
➢ What will be the restrictions on data processing?
• The Flat Model was the first method used to store data in a
computer.
• Each data item is stored on a disc sequentially in one large file.
• If you want to locate a particular item, you must start searching
process from the beginning and each item is checked one by one
sequentially until the searched value is matched.
Drawbacks:
❖ Data duplication, very poor security, slow operation when
retrieving data, non-support for different data types, memory
allocation problem, concurrent data sharing is not allowed,
insecure mechanism, etc.
• In the example below we can see that node student has two parents
i.e. CSE Department and Library. This was earlier not possible in the
hierarchical model.
• The main reason for the emergence of this model is the need to save
and share complex objects (objects derived from class) when
necessary.
• Like as in any object-oriented programming language, the classes are
defined and the objects of this class are derived and stored in the
database.
• A database with an object-oriented data model is called an object
database.
• As an example of OODBMS.
Super Key
Key
Candidate
Key
Primary Key
Super key 1
Student_ID
Super key 2
{Student_ID, First_Name,
Last_Name}
Super key 3
{Student_ID, Major}
Super key 4
{Student_ID, Major, Faculty}
Key 1: StudentID
Key 2: IDNumber
Purpose of usage
Linking a group of variables (record, tuple) with the
same or different relationships
1
2 StudentID Name Surname Dept_Code
3 4326 John Smith Ind
…
7643 Mary Sue Comp
…
3345 3345 Jack Blue Chem
… 7612 Jessy Lee Ind
…
4326
..
Student(StudentID integer key, Name stirng[20],
.. Surname string[20], Dept_Code string [10]
The set of all values Domain: A set that contains all information of
matching the attribute. character type up 1 to 10 in length.
Integrity
Constraints
• The entity constraint states that primary key value can't be null.
• This is because the primary key value is used to identify individual
rows in relation and if the primary key has a null value, then we can't
identify those rows.
• A table can contain a null value other than the primary key field.
• Key Constraint: The rules that are to be followed while entering data
into columns of the database table.
• The key constraint ensure that the data entered in the columns by
the user falls within the criteria specified by the condition.
1. Centralized DBMS
2. Distributed DBMS
Classification of DBMS
1. Homogeneously distributed DBMS
2. Heterogeneously distributed DBMS
• Disadvantages
➢Increase the Complexity/Effort
Any Questions