Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
13 views4 pages

01 Learn DB

A database is an organized digital storage system for information, like a student register, while a Database Management System (DBMS) is software that manages and retrieves data from a database. There are two main types of DBMS: Relational (RDBMS) which uses SQL for structured data, and Non-Relational (NoSQL) which uses other query languages for unstructured data. Examples of RDBMS include MySQL and PostgreSQL, while MongoDB is a popular NoSQL DBMS.

Uploaded by

ajayjangira8955
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
13 views4 pages

01 Learn DB

A database is an organized digital storage system for information, like a student register, while a Database Management System (DBMS) is software that manages and retrieves data from a database. There are two main types of DBMS: Relational (RDBMS) which uses SQL for structured data, and Non-Relational (NoSQL) which uses other query languages for unstructured data. Examples of RDBMS include MySQL and PostgreSQL, while MongoDB is a popular NoSQL DBMS.

Uploaded by

ajayjangira8955
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

📘 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 } });

You might also like