Sri Raghavendra Educational Institutions Society (R)
(Approved by AICTE, Accredited by NAAC, Affiliated to VTU, Karnataka)
Sri Krishna Institute of Technology
www.skit.org.in
Title: Terms used in RDBMS and MongoDB
CO addressed: CO2
Course: Big Data Analytics
Presented by: Mr. P. Kiran Kumar
Department: ISE
2
02/09/2026
/skit.org.in
(Approved by AICTE, Accredited by NAAC, Affiliated to VTU, Karnataka)
Sri Krishna Institute of Technology
Introduction to RDBMS and MongoDB Terms
RDBMS
MongoDB
3
02/09/2026
/skit.org.in
(Approved by AICTE, Accredited by NAAC, Affiliated to VTU, Karnataka)
Sri Krishna Institute of Technology
Structural Terms: RDBMS vs MongoDB
1. Database
2. Table / Collection
3. Row / Document
4. Column / Field
4
02/09/2026
/skit.org.in
(Approved by AICTE, Accredited by NAAC, Affiliated to VTU, Karnataka)
Sri Krishna Institute of Technology
Primary Key, _id and Foreign Key/Reference
1. Primary Key
2. _id in MongoDB
3. Foreign Key
4. Reference in MongoDB
5
02/09/2026
/skit.org.in
(Approved by AICTE, Accredited by NAAC, Affiliated to VTU, Karnataka)
Sri Krishna Institute of Technology
Example
In RDBMS:
Student
Student_ID | Name | Dept_ID
101 | Ravi | D01
Department
Dept_ID | Dept_Name
D01 | CSE
MongoDB
{
"_id": 101,
"name": "Ravi",
"dept_id": "D01"
}
Key Point:
Primary Key ↔ _id
Foreign Key ↔ Reference
6
02/09/2026
/skit.org.in
(Approved by AICTE, Accredited by NAAC, Affiliated to VTU, Karnataka)
Sri Krishna Institute of Technology
Relationships and Joins: JOIN, Embedding, $lookup
1. JOIN in RDBMS
2. Embedding in MongoDB
3. $lookup in MongoDB
{
"_id": 101,
"name": "Ravi",
"department": {
"id": "D01",
"name": "CSE"
}
}
7
02/09/2026
/skit.org.in
(Approved by AICTE, Accredited by NAAC, Affiliated to VTU, Karnataka)
Sri Krishna Institute of Technology
Indexing and Querying: Index, SQL Query, Find Query
1. Index
Example: Index on Student_ID or name.
2. SQL Query – RDBMS
Example:
SELECT * FROM Student
WHERE name = 'Ravi';
3. Find Query – MongoDB
Example:
db.students.find({ name: "Ravi" })
8
02/09/2026
/skit.org.in
(Approved by AICTE, Accredited by NAAC, Affiliated to VTU, Karnataka)
Sri Krishna Institute of Technology
Aggregation and Transactions
1. Aggregation Pipeline – MongoDB
2. ACID Transactions
Transactions ensure reliable database operations.
3. Commit and Rollback
9
02/09/2026
/skit.org.in
(Approved by AICTE, Accredited by NAAC, Affiliated to VTU, Karnataka)
Sri Krishna Institute of Technology
Performance and Scaling
1. Vertical Scaling
2. Horizontal Scaling
3. Sharding
4. Replication
10
02/09/2026
/skit.org.in
(Approved by AICTE, Accredited by NAAC, Affiliated to VTU, Karnataka)
Sri Krishna Institute of Technology
Backup, Recovery and Data Integrity
1. mongodump
2. mongorestore
3. Oplog
4. Change Streams
11
02/09/2026
/skit.org.in
(Approved by AICTE, Accredited by NAAC, Affiliated to VTU, Karnataka)
Sri Krishna Institute of Technology
Security and Authentication
1. RBAC – Role-Based Access Control
2. LDAP – Lightweight Directory Access Protocol
3. Kerberos
4. SCRAM – Salted Challenge Response Authentication Mechanism
5. Encryption
12
02/09/2026
/skit.org.in
(Approved by AICTE, Accredited by NAAC, Affiliated to VTU, Karnataka)
Sri Krishna Institute of Technology
MongoDB Database Commands
1. Create / Switch Database
2. Verify Current Database
3. List Databases
4. Drop Database
// Create / Switch to database
use collegeDB
// Insert data to create the database
db.students.insertOne({
_id: 101,
name: "Ravi",
department: "CSE"
})
// Drop the database
db.dropDatabase()