Unit01 - Database System Concept & Data Modeling
Unit01 - Database System Concept & Data Modeling
RDBMS
B Y: Aniruddha Halder
Wo m e n ’s P o l y t e c h n i c , C h a n d a n n a g a r
What is Database Management System?
A Database Management System (DBMS), or simply a Database System (DBS)
consist of :
A collection of interrelated and persistent data (usually referred to as the
database (DB)).
A set of application programs used to access, update and manage that data
(which form the data management system (MS)).
1970: Edgar Code of IBM developed the relational data model. Led to
several DBMS based on relational model, as well as important
theoretical results. Code wins Turing award.
This external data is cleaned up and transformed to fit the desired format so that it can be imported into a
central repository.
• Specialised Data Handling:
Today’s databases can be massive and may contain unstructured data types such as images, documents, or
sound and video files. Managing a very large database (VLDB) may require higher-level skills and additional
monitoring and tuning to maintain efficiency.
DBA and its Responsibilities Continued..
• Database Backup and Recovery:
DBAs create backup and recovery plans and procedures based on industry best practices, then make sure that
the necessary steps are followed. Backups cost time and money, so the DBA may have to persuade
management to take necessary precautions to preserve data.
• Security: A DBA needs to know potential weaknesses of the database software and the
company’s overall system and work to minimize risks. No system is one hundred per cent immune to attacks,
but implementing best practices can minimize risks.
• Authentication: Setting up employee access is an important aspect of database security.
DBAs control who has access and what type of access they are allowed. For instance, a user may have
permission to see only certain pieces of information, or they may be denied the ability to make changes to the
system.
• Capacity Planning: The DBA needs to know how large the database currently is and how
fast it is growing in order to make predictions about future needs. Storage refers to how much room the
database takes up in server and backup space. Capacity refers to usage level.
Internal Level: Internal level indicates how the data will be stored and described the data
structures and access method to be used by the database.
Components of DBMS
• Hardware: Can range from a PC to a network of computers.
• Software: DBMS, operating system, network software (if necessary) and also the application
programs.
• Data: Used by the organization and a description of this data called the schema.
• People: Includes database designers, DBAs, application programmers, and end-users.
• Procedure: Instructions and rules that should be applied to the design and use of the database and DBMS.
Advantages of DBMS Over File Management System
• Controlling Redundancy.
• Sharing of Data.
• Data Consistency.
• Integration of Data.
• Integration Constraints.
• Data Security.
• Report Writers.
• Control Over Concurrency.
• Backup and Recovery Procedures.
• Data Independence (At the Logical & Physical Level).
Write Short notes on Logical & Physical data independence
Disadvantages of DBMS
• Cost of Hardware and Software .
• Cost of Data Conversion.
• Cost of Staff Training.
• Appointing Technical Staff.
• Database Damage & Migration.
https://beginnersbook.com/2015/04/dbms-tutorial/
Entity Relationship Model (ER) of DBMS
An Entity–relationship model (ER model) describes the visual structure of a database with
the help of a diagram, which is known as Entity Relationship Diagram (ER Diagram). An
ER model is a design or blueprint of a database that can later be implemented as a database.
The main components of E-R model are: entity set and relationship set.
Components of a ER Diagram
• Rectangle: Represents Entity sets.
• Ellipses: Attributes.
• Diamonds: Relationship Set.
• Lines: They link attributes to Entity Sets and Entity sets to Relationship Set.
• Double Ellipses: Multivalued Attributes.
• Dashed Ellipses: Derived Attributes.
• Double Rectangles: Weak Entity Sets.
• Double Lines: Total participation of an entity in a relationship set.
E ntity
An entity can be a real-world object, either animate or inanimate, that can be easily
identifiable. For example, in a school database, students, teachers, classes, and courses offered
can be considered as entities. All these entities have some attributes or properties that give
●
them their identity.
An entity set is a collection of similar types of entities. An entity set may contain entities
with attribute sharing similar values. For example, a Students set may contain all the
students of a school; likewise a Teachers set may contain all the teachers of a school from all
faculties. Entity
●
sets need not be disjoint.
Attributes
Entities are represented by means of their properties, called attributes. All attributes have
values. For example, a student entity may have name, class, and age as attributes.
●
There exists a domain or range of values that can be assigned to attributes. For example, a
student's name cannot be a numeric value. It has to be alphabetic. A student's age cannot be
negative, etc.
Types of Attributes
Simple attribute − Simple attributes are atomic values, which cannot be divided further. For
example, a student's phone number is an atomic value of 10 digits.
Composite attribute − Composite attributes are made of more than one simple attribute. For
example, a student's complete name may have first_name and last_name.
Derived attribute − Derived attributes are the attributes that do not exist in the physical
database, but their values are derived from other attributes present in the database. For
example, average_salary in a department should not be saved directly in the database,
instead it can be derived. For another example, age can be derived from date_of_birth.
Relationship Set: A set of relationships of similar type is called a relationship set. Like
entities, a relationship too can have attributes. These attributes are called descriptive
attributes. Descriptive Attributes H/T
Degree of Relationship: The number of participating entities in a relationship defines the
degree of the relationship.
Binary = degree 2
Ternary = degree 3
N - ary = degree n
Mapping Cardinalities
Cardinality defines the number of entities in one entity set, which can be associated with the
number of entities of other set via relationship set.
Types of Cardinalities
One-to-one: One entity from entity set A can be associated with
at most one entity of entity set B and vice versa.