Dbms Unit-1 - Important Points
Dbms Unit-1 - Important Points
Dbms Unit-1 - Important Points
(DBMS)
CAP200
1. Basic Concepts : Purpose of database systems, Components of DBMS,
DBMS Architecture, Data Independence, Different Data Models,
Various types of constraints
2. Structure of Relational Databases : Relational Databases, Relational
Algebra, Views, DDL statements in SQL, DML statements in SQL, JOINS
3. Database Design : Design guidelines, Relational database design,
Pitfalls in Relational Database Design, Second Normal Form, Third
Normal Form, Forth Normal Form, Fifth Normal Form, First Normal
Form, Types of dependencies
4. Transaction Processing : Transaction concept, Desirable properties of
transactions, Schedules and Recoverability, Serializability of schedules
5. Concurrency Control and Recovery : Lock-Based Protocols, Deadlock
Handling, Multiple Granularity, Timestamp-Based Protocols, Validation-
Based Protocols, Failure Classification, Buffer Management, Failure
with Loss of Nonvolatile Storage, Log based recovery, Shadow paging
6. Distributed Databases : Distributed Databases, Client /Server
Databases, Data Fragmentation, Replication and Allocation Techniques,
SemiJoin, Homogeneous and Heterogeneous Databases, Distributed
Data Storage, Distributed Transactions, Cloud-Based Databases
Text Books:
• DATABASE SYSTEMS CONCEPTS by
ABRAHAM SILBERSCHATZ, HENRY F. KORTH,
S. SUDARSHAN, MCGRAW HILL EDUCATION
References:
• 1. AN INTRODUCTION TO DATABASE DESIGN
by
C. J. DATE, S. SWAMYNATHAN, A. KANNAN,
PEARSON
• 2. FUNDAMENTALS OF DATABASE SYSTEMS by
ELMASRI AND NAVATHE, PEARSON
• CA’S THREE and Two best will be picked up
• Mid term
• End term
Paradigm Shift from File System to DBMS
File System manages data using files in hard disk. Users are
allowed to create, delete, and update the files according
to their requirement.
Optimization engine
it can provide a powerful toolset to gain the
best performance out of the database
Log manager
• This component will keep all the logs of the
DBMS. These logs will consist of user logins
and activity, database functions, backups and
restore functions, etc. The log manager
ensures all these logs are properly recorded
and easily accessible.
Reporting & monitoring tools
• Reporting and monitoring tools are another
standard component that comes with a DBMS.
Reporting tools will enable users to generate
reports while monitoring tools enable
monitoring the databases for resource
consumption, user activity, etc.
Exampl
e
RDBMS
• Users: Users may be of any kind such as DB
administrator, System developer, or database
users.
• Database application: Database application
may be Departmental, Personal, organization's
and / or Internal.
• DBMS: Software that allows users to create
and manipulate database access,
• Database: Collection of logical data as a single
unit.
DBMS Architecture
There are three types of DBMS Architecture :
• 1-Tier Architecture
• 2-Tier Architecture
• 3-Tier Architecture
1-Tier Architecture
1 Tier Architecture in DBMS is the simplest architecture of Database
in which the client, server, and Database all reside on the same
machine. A simple one tier architecture example would be anytime
you install a Database in your system and access it to practice SQL
queries.
2-Tier Architecture
A 2 Tier Architecture in DBMS is a Database architecture where the
presentation layer runs on a client (PC, Mobile, Tablet, etc.), and
data is stored on a server called the second tier. Two tier
architecture provides added security to the DBMS as it is not
exposed to the end- user directly. It also provides direct and faster
communication.
Example : A Contact Management System created using MS- Access.
3-Tier Architecture
3 Tier Architecture in DBMS is the most popular client server
architecture in DBMS in which the development and maintenance of
functional processes, logic, data access, data storage, and user
interface is done independently as separate modules. Three Tier
architecture contains a presentation layer, an application layer, and a
database server.
• Parent-Child Relationship: Each child node has a parent node but a parent
node can have more than one child node. Multiple parents are not allowed.
• Pointers: Pointers are used to link the parent node with the child node and
are used to navigate between the stored data. Example: In the above
example the 'shoes' node points to the two other nodes 'women shoes' node
and 'men's shoes' node.
Network Model
This model is an extension of the
hierarchical model. It was the most
popular model before the relational
model. This model is the same as the
hierarchical model,
The only difference is that a record can
have more than one parent.
It replaces the hierarchical tree with a
graph.
Example: 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.
Features of a Network Model
• Ability to Merge more Relationships: In this model,
as there are more relationships so data is more
related. This model has the ability to manage one-
to- one relationships as well as many-to-many
relationships.
• Many paths: As there are more relationships so
there can be more than one path to the same
record. This makes data access fast and simple.
.
Given below is the pictorial representation of the network model in
DBMS
Object-Oriented Data Model
The objects Circle, Rectangle and Triangle inherit from the object Shape
Attribute(s):
The attribute is used to describe the property of an entity. Eclipse is used to
represent an attribute.
For example, id, age, contact number, name, etc. can be attributes of a student.
1. Key Attribute –
The attribute which uniquely identifies each entity . It represents a primary key. The
key attribute is represented by an ellipse with the text underlined.
2. Composite Attribute –
An attribute that composed of many other attributes is known as a composite
attribute. The composite attribute is represented by an ellipse, and those ellipses are
connected with an ellipse.
3. Multivalued Attribute –
An attribute can have more than one value. These attributes are known as a multivalued
attribute. The double oval is used to represent multivalued attribute.
For example, a student can have more than one phone number.
d. Derived Attribute
An attribute that can be derived from other attribute is known as a derived
attribute. It can be represented by a dashed ellipse.
For example, A person's age changes over time and can be derived from
another attribute like Date of birth.
Relationship
For example, A female can marry to one male, and a male can
marry to one female.
b. One-to-many relationship
For example, Scientist can invent many inventions, but the invention is done by the
only specific scientist.
c. Many-to-one relationship
For example, Student enrolls for only one course, but a course can have many
students.
d. Many-to-many relationship
For example, Employee can assign by many projects and project can have many
employees.
Example:
Following are the main components and its
symbols in ER Diagrams:
• Rectangles: This Entity Relationship
Diagram symbol represents entity types.
• Ellipses : Symbol represent attributes.
• Diamonds: This symbol represents
relationship types.
• Lines: It links attributes to entity types and
entity types with other relationship types.
• Primary key: attributes are underlined.
• Double Ellipses: Represent multi-valued
attributes.
Features of ER Model
• Graphical for
Understanding: It is very easy Better
Representation
understand so it can be used by theand simple to
developers to
communicate with the stakeholders.
• ER Diagram: ER diagram is used as a visual tool for
representing the model.
• Database Design: This model helps the database
designers to build the database and is widely used
in database design.
Why Relational Model ?
Relational Model was proposed by E.F. Codd to model data in the form of relations or
tables.
Tuple:
Each row in the relation is known as tuple.
The above
1 relation contains 4 tuples,
RAM DELHI one of which9455123451
is shown as: 18