DBMS - 6th Sem
DBMS - 6th Sem
🔹 Definition:
A DBMS is software that helps in storing, managing, and retrieving data from a database
efficiently.
It acts as a bridge between the user and the database, ensuring that data is stored securely and remains
consistent.
It acts like a digital record keeper for big amounts of information.
It allows quick searching, updating, inserting, and deleting of data using SQL queries.
This saves time and effort, especially when handling large amounts of data.
2. Data Security
DBMS provides features like user access control and password protection.
Only authorized users can access or modify data, which helps to keep data safe from misuse or
hacking.
A DBMS reduces data duplication and errors by storing data in a well-organized manner.
It ensures that everyone sees the same, updated data, which helps maintain data consistency across
the system.
DBMS uses normalization to reduce data redundancy, saving storage space and avoiding confusion
caused by duplicate data.
In case of system failure or power cut, the recovery system can restore the data without loss.
6. Multi-user Access
Many users can access the database at the same time without problems.
DBMS manages this using concurrency control, ensuring that data remains correct and no one’s
changes are lost.
7. Data Sharing
This is useful in organizations where departments need to collaborate and work with common data.
With clean, accurate, and timely data, businesses can make better and faster decisions.
DBMS allows generation of reports and summaries, which help managers understand data patterns.
9. Data Independence
So, you can change the structure of data (like add a column) without changing the programs that use
the data.
10. Standardization
DBMS follows standard rules and structures, making it easier to train people, manage data, and work
across systems.
A Database is a collection of data that is organized so that it can be easily accessed, managed, and updated.
Based on how data is stored, managed, and used, databases in DBMS are classified into several types.
1. Hierarchical Database
Each record has one parent and can have multiple children (like a family tree).
Similar to hierarchical, but here each record can have multiple parents and multiple children.
3. Relational Database
Tables are related using keys like Primary Key and Foreign Key.
4. Object-Oriented Database
Data is stored in the form of objects, just like in object-oriented programming (OOP).
5. Distributed Database
Each location has its own database and DBMS, but they work as one logical system.
6. Cloud Database
A modern type of database that is stored and accessed via the internet using cloud platforms.
7. NoSQL Database
Used for handling large volumes of unstructured or semi-structured data like text, images, videos,
etc.
Different types of databases are used depending on the type of data, application needs, and performance
requirements. Among all, the Relational Database is the most commonly used, but modern applications are
now using cloud and NoSQL databases as well.
👉 Used to define the structure of the database – like tables, columns, and data types.
👉 Used to insert, update, delete, and retrieve data from the database.
👉 Used to manage transactions in a database and make sure data stays correct.
So, DBMS languages are used to create, manage, and secure the database. Each type (DDL, DML, DCL, TCL) has
a specific role. Learning these helps in properly interacting with and controlling the database system.
Data types
Sizes
✅ Simple Meaning:
These functions work on a single row and return one result per row.
a) String Functions
b) Number Functions
c) Date Functions
d) Conversion Functions
Used to convert data types.
Examples:
These functions work on multiple rows and return one result for the group.
Function Description
Single Row Functions help format and transform data one row at a time.
Aggregate Functions are useful for summarizing data across multiple records.
These functions help in writing powerful and meaningful SQL queries.