📘 What is a Database?
A Database is like a digital notebook or file where we store information in an organized way so
we can use it easily later.
👉 Example:
Think of a school student register – it stores names, roll numbers, marks, etc. That’s a database!
💡 Real-life examples:
Contacts saved in your phone 📱
YouTube videos list 📹
Online shopping order history 🛒
💻 What is DBMS (Database Management System)?
A DBMS is a software that helps us create, store, manage, and retrieve data from a database.
It works like a manager between the user and the database.
👉 Example:
You don’t write directly on your phone’s memory – you use an app (like Contacts) to add, edit,
or delete contacts. That app works like a DBMS.
🧠 In simple terms:
Term Meaning Example
Database Place to store data Student list in a file
DBMS Tool to manage and access that data Software like MySQL, SQLite, etc.
🎯 Features of DBMS:
Easy to insert, update, delete data
Avoids data duplication
Protects data with security
Helps in fast searching of data
📦 Database = The actual data (like files, tables, documents).
⚙️DBMS = The software or system that manages those databases.
🎯 Now, let’s look at examples to understand better:
Name Type What it does
MySQL DBMS Manages data in relational tables (SQL format)
Manages data in JSON-like documents (NoSQL
MongoDB DBMS
format)
The database inside MongoDB/MySQL Database Stores the actual data like users, orders, etc.
🔸 SQL is a language, not a place to store data.
SQL = Structured Query Language
It is used to talk to a database.
You use SQL to:
Create tables
Insert data
Fetch data
Update or delete data
But SQL by itself does not store data — it just gives commands.
The data is stored inside a database, which is managed by a DBMS like:
DBMS Software Uses SQL? Stores Data?
MySQL ✅ Yes ✅ Yes
PostgreSQL ✅ Yes ✅ Yes
Oracle DB ✅ Yes ✅ Yes
SQLite ✅ Yes ✅ Yes
🌟 Final Answer:
Name Type Meaning
SQL Language SQL is a language used to interact with Relational DBMS like MySQL, PostgreSQL.
MongoDB DBMS MongoDB is a NoSQL Database Management System (NoSQL DBMS) — it does
Name Type Meaning
not use SQL, it uses its own Mongo Query Language (MQL).
✌️Types of DBMS:
1️⃣ Relational DBMS (RDBMS)
Stores data in tables (rows & columns like Excel)
Uses SQL language to manage data
Best for structured data
🔹 Examples:
MySQL
Oracle
PostgreSQL
SQLite
🔹 Language Used:
SQL (Structured Query Language)
💬 Example SQL Query:
sql
SELECT * FROM students WHERE marks > 90;
2️⃣ Non-Relational DBMS (NoSQL DBMS)
Stores data in documents, key-value, graph, or column format
Uses other query languages, not SQL
Best for unstructured or semi-structured data
🔹 Examples:
MongoDB (uses JSON-like documents)
Cassandra
Firebase
CouchDB
🔹 Language Used:
MQL (Mongo Query Language) in MongoDB, JSON-based queries in others
💬 Example MongoDB Query:
js
db.students.find({ marks: { $gt: 90 } });