Dbms Notes
Dbms Notes
Dbms Notes
Database Management System (DBMS) is a software for storing and retrieving users' data while
considering appropriate security measures.
It consists of a group of programs which manipulate the database. The DBMS accepts the
request for data from an application and instructs the operating system to provide the specific
data.
In large systems, a DBMS helps users and other third-party software to store and retrieve data.
DBMS allows users to create their own databases as per their requirement. The term “DBMS”
includes the user of the database and other application programs.
It provides an interface between the data and the software application.
------------------------
RDBMS
A relational database management system (RDBMS or just RDB) is a common type of database
that stores data in tables, so it can be used in relation to other stored datasets.
Relational databases have the muscle to handle multitudes of data and complex queries.
Multiple tables are standard usage for modern databases.
The data is often stored in many tables, also called ‘relations’. These tables are divided into
rows, also called records and columns (fields).
------------------------
Entity relationship diagram
An ER diagram shows the relationship among entity sets. An entity set is a group of similar
entities and these entities can have attributes.
In terms of DBMS, an entity is a table or attribute of a table in database.
So by showing relationship among tables and their attributes, ER diagram shows the complete
logical structure of a database.
------------------------
Types of relationships
1. One to One relationship : each record in one entity is related to only record in other entity
eg : Employee -> Passport
2. one to Many relationship : each record in one entity is related to many record in other entity,
but not the other way round.
eg: University : student
3. Many to Many relationship : each record in one entity is related to many record in other
entity, and same the other way round.
------------------------
Data Dictionary
It basically stores all the data related to database. Therfore it provides the metadata about the
database.
------------------------
Types of Constraints