SlideShare a Scribd company logo
W O R K S H O P
M I S S F A R H A T
CONTENT
 Introduction to MongoDb
 Introduction to Database
 SQL/MYSQL vs MongoDb
 Difference between JSON and BSON
 Installation of MongoDb
 CRUD Operation in MongoDb
INTRODUCTIONTO MONGODB
INTRODUCTIONTO DATABASE
 What is Datum and Data?
‘Datum' is the singular form and ‘Data' is the plural form.
 What is Database Management System?
A Database Management System (DBMS) is software designed to store,
retrieve, define, and manage data in a database.
 What are the advantages of Database?
 Reduced data redundancy.
 Reduced updating errors and increased consistency.
 Greater data integrity and independence from applications programs.
 Improved data access to users through use of host and query languages.
SQL/MYSQLVS MONGODB
SQL/MYSQL MONGODB
 RDBMS is a relational database
management system, and
works on relational database.
 It stores data in form of
entities.
 It uses SQl to Query database.
 Example:
create table student(
ID int,
Name varchar,
Age int
)
 It’s a non-relational, document
oriented database management
system, and works on
document-base database.
 It stores data in form of
documents.
 It uses BSON to Query database.
 Example:
{
“ID” : 1,
“Name” : “Ali”,
“Age” : 20
}
JSON VS BSON
Below is the topmost Comparison between JSON vs BSON :
Basis of Comparison JSON BSON
Type Standard file format Binary file format
Speed Comparatively less fast Faster
Space Consumes comparatively less space. More space is consumed.
Usage Transmission of data. Storage of data.
Characteristics
Key-value pair only used for
transmission of data.
Lightweight, fast and traversable.
Structure
Language independent format used for
asynchronous server browser
communication.
Binary JSON which consist of a list of
ordered elements containing a field name,
type, and value. Field name types are
typically a string.
INSTALLATION OF MONGODB
Steps to download MongoDb Community Server:
 https://www.mongodb.com
 https://www.mongodb.com/try/download/community
 Version: 4.2.14
 Platform :Windows
 Package: msi (Microsoft Install)
 Click to download
INSTALLATION OF MONGODB
Steps to install MongoDb Community Server:
INSTALLATION OF MONGODB
Steps to install MongoDb Community Server:
INSTALLATION OF MONGODB
Steps to install MongoDb Community Server:
INSTALLATION OF MONGODB
Steps to install MongoDb Community Server:
INSTALLATION OF MONGODB
Steps to install MongoDb Community Server:
INSTALLATION OF MONGODB
Steps to install MongoDb Community Server:
INSTALLATION OF MONGODB
Steps to install MongoDb Community Server:
INSTALLATION OF MONGODB
Steps to install MongoDb Community Server:
INSTALLATION OF MONGODB
Steps to install MongoDb Community Server:
“C:Program FilesMongoDBServer4.2binmongod.exe” --version
“C:Program FilesMongoDBServer4.2binmongo.exe” --version
“C:Program FilesMongoDBServer4.2bin”
C:Program FilesMongoDBServer4.2data
C:Program FilesMongoDBServer4.2log
Show dbs
Env -> Advance -> EnvironmentVariable -> (Path) Edit -> New ->
C:Program FilesMongoDBServer4.2bin -> Ok
CRUD IN MONGODB
Create Database:
Use DatabaseName
Create Collection:
Db.CollectionName.insertOne({Name: “Ali”,Age: 20})
Insert Many Record:
Db.CollectionName.insertMany([{Name: “Ahsan”, Age: 20}, {Name:
“Sara”, Age: 22}])
Show Database:
Show databases
Show Collection:
Show collections
Show data:
Db.CollectionName.find()
Db.CollectionName.find().pretty()

More Related Content

What's hot (20)

PDF
Dataflow with Apache NiFi
DataWorks Summit/Hadoop Summit
 
PDF
NOSQL- Presentation on NoSQL
Ramakant Soni
 
PPTX
Basics of MongoDB
HabileLabs
 
PDF
How to Choose the Right Database for Your Workloads
InfluxData
 
PDF
Introduction to MongoDB
Mike Dirolf
 
PDF
Transaction Management on Cassandra
Scalar, Inc.
 
PDF
Dissecting the rabbit: RabbitMQ Internal Architecture
Alvaro Videla
 
PPTX
A Deep Dive into Spark SQL's Catalyst Optimizer with Yin Huai
Databricks
 
PDF
[NDC18] 야생의 땅 듀랑고의 데이터 엔지니어링 이야기: 로그 시스템 구축 경험 공유
Hyojun Jeon
 
PPTX
Introduction to MongoDB.pptx
Surya937648
 
KEY
NoSQL Databases: Why, what and when
Lorenzo Alberton
 
PPTX
Sql vs NoSQL
RTigger
 
PPT
Introduction to mongodb
neela madheswari
 
PDF
MongoDB WiredTiger Internals
Norberto Leite
 
PPTX
MongoDB
nikhil2807
 
PPTX
MongoDB presentation
Hyphen Call
 
PPTX
Django Girls Tutorial
Kishimi Ibrahim Ishaq
 
PPTX
Introduction to Redis
Arnab Mitra
 
PDF
The Apache Spark File Format Ecosystem
Databricks
 
PDF
Spark SQL Deep Dive @ Melbourne Spark Meetup
Databricks
 
Dataflow with Apache NiFi
DataWorks Summit/Hadoop Summit
 
NOSQL- Presentation on NoSQL
Ramakant Soni
 
Basics of MongoDB
HabileLabs
 
How to Choose the Right Database for Your Workloads
InfluxData
 
Introduction to MongoDB
Mike Dirolf
 
Transaction Management on Cassandra
Scalar, Inc.
 
Dissecting the rabbit: RabbitMQ Internal Architecture
Alvaro Videla
 
A Deep Dive into Spark SQL's Catalyst Optimizer with Yin Huai
Databricks
 
[NDC18] 야생의 땅 듀랑고의 데이터 엔지니어링 이야기: 로그 시스템 구축 경험 공유
Hyojun Jeon
 
Introduction to MongoDB.pptx
Surya937648
 
NoSQL Databases: Why, what and when
Lorenzo Alberton
 
Sql vs NoSQL
RTigger
 
Introduction to mongodb
neela madheswari
 
MongoDB WiredTiger Internals
Norberto Leite
 
MongoDB
nikhil2807
 
MongoDB presentation
Hyphen Call
 
Django Girls Tutorial
Kishimi Ibrahim Ishaq
 
Introduction to Redis
Arnab Mitra
 
The Apache Spark File Format Ecosystem
Databricks
 
Spark SQL Deep Dive @ Melbourne Spark Meetup
Databricks
 

Similar to Mongo db workshop # 01 (20)

PPTX
MongoDB
Tharun Srinivasa
 
PPTX
Database Workshop Slides
GDSC UofT Mississauga
 
PDF
A Study on Mongodb Database.pdf
Jessica Navarro
 
PDF
A Study on Mongodb Database
IJSRD
 
DOCX
MongoDB DOC v1.5
Tharun Srinivasa
 
PDF
Introduction to MongoDB and its best practices
AshishRathore72
 
PPTX
MongoDB.pptx
Aayush Chimaniya
 
PPTX
MongoDB.local Sydney: An Introduction to Document Databases with MongoDB
MongoDB
 
PPTX
how_can_businesses_address_storage_issues_using_mongodb.pptx
sarah david
 
PDF
how_can_businesses_address_storage_issues_using_mongodb.pdf
sarah david
 
PDF
MongoDB - An Introduction
sethfloydjr
 
PPTX
Jumpstart: Building Your First MongoDB App
MongoDB
 
PDF
MongoDB and crud operations with nosql_ppt.pdf
HemrajAunund2
 
PPTX
Everything You Need to Know About MongoDB Development.pptx
75waytechnologies
 
PPTX
MongoDB World 2018: Bumps and Breezes: Our Journey from RDBMS to MongoDB
MongoDB
 
PDF
Hands on Big Data Analysis with MongoDB - Cloud Expo Bootcamp NYC
Laura Ventura
 
PDF
Mongo db halloween party
Andrea Balducci
 
PPTX
Kalp Corporate MongoDB Tutorials
Kalp Corporate
 
PPTX
Mongodb Introduction
Nabeel Naqeebi
 
PDF
MongoDB Developer's Notebook, March 2016 -- MongoDB Connector for Business In...
Daniel M. Farrell
 
Database Workshop Slides
GDSC UofT Mississauga
 
A Study on Mongodb Database.pdf
Jessica Navarro
 
A Study on Mongodb Database
IJSRD
 
MongoDB DOC v1.5
Tharun Srinivasa
 
Introduction to MongoDB and its best practices
AshishRathore72
 
MongoDB.pptx
Aayush Chimaniya
 
MongoDB.local Sydney: An Introduction to Document Databases with MongoDB
MongoDB
 
how_can_businesses_address_storage_issues_using_mongodb.pptx
sarah david
 
how_can_businesses_address_storage_issues_using_mongodb.pdf
sarah david
 
MongoDB - An Introduction
sethfloydjr
 
Jumpstart: Building Your First MongoDB App
MongoDB
 
MongoDB and crud operations with nosql_ppt.pdf
HemrajAunund2
 
Everything You Need to Know About MongoDB Development.pptx
75waytechnologies
 
MongoDB World 2018: Bumps and Breezes: Our Journey from RDBMS to MongoDB
MongoDB
 
Hands on Big Data Analysis with MongoDB - Cloud Expo Bootcamp NYC
Laura Ventura
 
Mongo db halloween party
Andrea Balducci
 
Kalp Corporate MongoDB Tutorials
Kalp Corporate
 
Mongodb Introduction
Nabeel Naqeebi
 
MongoDB Developer's Notebook, March 2016 -- MongoDB Connector for Business In...
Daniel M. Farrell
 
Ad

Recently uploaded (20)

PDF
Understanding the Need for Systemic Change in Open Source Through Intersectio...
Imma Valls Bernaus
 
PDF
Streamline Contractor Lifecycle- TECH EHS Solution
TECH EHS Solution
 
PDF
Dealing with JSON in the relational world
Andres Almiray
 
PDF
Continouous failure - Why do we make our lives hard?
Papp Krisztián
 
PDF
Alarm in Android-Scheduling Timed Tasks Using AlarmManager in Android.pdf
Nabin Dhakal
 
PPTX
3uTools Full Crack Free Version Download [Latest] 2025
muhammadgurbazkhan
 
PPTX
Revolutionizing Code Modernization with AI
KrzysztofKkol1
 
PDF
Mobile CMMS Solutions Empowering the Frontline Workforce
CryotosCMMSSoftware
 
PDF
Difference Between Kubernetes and Docker .pdf
Kindlebit Solutions
 
PPTX
Migrating Millions of Users with Debezium, Apache Kafka, and an Acyclic Synch...
MD Sayem Ahmed
 
PPTX
Why Businesses Are Switching to Open Source Alternatives to Crystal Reports.pptx
Varsha Nayak
 
PDF
Laboratory Workflows Digitalized and live in 90 days with Scifeon´s SAPPA P...
info969686
 
PDF
Thread In Android-Mastering Concurrency for Responsive Apps.pdf
Nabin Dhakal
 
PDF
Capcut Pro Crack For PC Latest Version {Fully Unlocked} 2025
hashhshs786
 
PDF
LPS25 - Operationalizing MLOps in GEP - Terradue.pdf
terradue
 
PPTX
Equipment Management Software BIS Safety UK.pptx
BIS Safety Software
 
PPTX
WYSIWYG Web Builder Crack 2025 – Free Download Full Version with License Key
HyperPc soft
 
PPTX
MailsDaddy Outlook OST to PST converter.pptx
abhishekdutt366
 
PDF
Powering GIS with FME and VertiGIS - Peak of Data & AI 2025
Safe Software
 
PDF
Transform Retail with Smart Technology: Power Your Growth with Ginesys
Ginesys
 
Understanding the Need for Systemic Change in Open Source Through Intersectio...
Imma Valls Bernaus
 
Streamline Contractor Lifecycle- TECH EHS Solution
TECH EHS Solution
 
Dealing with JSON in the relational world
Andres Almiray
 
Continouous failure - Why do we make our lives hard?
Papp Krisztián
 
Alarm in Android-Scheduling Timed Tasks Using AlarmManager in Android.pdf
Nabin Dhakal
 
3uTools Full Crack Free Version Download [Latest] 2025
muhammadgurbazkhan
 
Revolutionizing Code Modernization with AI
KrzysztofKkol1
 
Mobile CMMS Solutions Empowering the Frontline Workforce
CryotosCMMSSoftware
 
Difference Between Kubernetes and Docker .pdf
Kindlebit Solutions
 
Migrating Millions of Users with Debezium, Apache Kafka, and an Acyclic Synch...
MD Sayem Ahmed
 
Why Businesses Are Switching to Open Source Alternatives to Crystal Reports.pptx
Varsha Nayak
 
Laboratory Workflows Digitalized and live in 90 days with Scifeon´s SAPPA P...
info969686
 
Thread In Android-Mastering Concurrency for Responsive Apps.pdf
Nabin Dhakal
 
Capcut Pro Crack For PC Latest Version {Fully Unlocked} 2025
hashhshs786
 
LPS25 - Operationalizing MLOps in GEP - Terradue.pdf
terradue
 
Equipment Management Software BIS Safety UK.pptx
BIS Safety Software
 
WYSIWYG Web Builder Crack 2025 – Free Download Full Version with License Key
HyperPc soft
 
MailsDaddy Outlook OST to PST converter.pptx
abhishekdutt366
 
Powering GIS with FME and VertiGIS - Peak of Data & AI 2025
Safe Software
 
Transform Retail with Smart Technology: Power Your Growth with Ginesys
Ginesys
 
Ad

Mongo db workshop # 01

  • 1. W O R K S H O P M I S S F A R H A T
  • 2. CONTENT  Introduction to MongoDb  Introduction to Database  SQL/MYSQL vs MongoDb  Difference between JSON and BSON  Installation of MongoDb  CRUD Operation in MongoDb
  • 4. INTRODUCTIONTO DATABASE  What is Datum and Data? ‘Datum' is the singular form and ‘Data' is the plural form.  What is Database Management System? A Database Management System (DBMS) is software designed to store, retrieve, define, and manage data in a database.  What are the advantages of Database?  Reduced data redundancy.  Reduced updating errors and increased consistency.  Greater data integrity and independence from applications programs.  Improved data access to users through use of host and query languages.
  • 5. SQL/MYSQLVS MONGODB SQL/MYSQL MONGODB  RDBMS is a relational database management system, and works on relational database.  It stores data in form of entities.  It uses SQl to Query database.  Example: create table student( ID int, Name varchar, Age int )  It’s a non-relational, document oriented database management system, and works on document-base database.  It stores data in form of documents.  It uses BSON to Query database.  Example: { “ID” : 1, “Name” : “Ali”, “Age” : 20 }
  • 6. JSON VS BSON Below is the topmost Comparison between JSON vs BSON : Basis of Comparison JSON BSON Type Standard file format Binary file format Speed Comparatively less fast Faster Space Consumes comparatively less space. More space is consumed. Usage Transmission of data. Storage of data. Characteristics Key-value pair only used for transmission of data. Lightweight, fast and traversable. Structure Language independent format used for asynchronous server browser communication. Binary JSON which consist of a list of ordered elements containing a field name, type, and value. Field name types are typically a string.
  • 7. INSTALLATION OF MONGODB Steps to download MongoDb Community Server:  https://www.mongodb.com  https://www.mongodb.com/try/download/community  Version: 4.2.14  Platform :Windows  Package: msi (Microsoft Install)  Click to download
  • 8. INSTALLATION OF MONGODB Steps to install MongoDb Community Server:
  • 9. INSTALLATION OF MONGODB Steps to install MongoDb Community Server:
  • 10. INSTALLATION OF MONGODB Steps to install MongoDb Community Server:
  • 11. INSTALLATION OF MONGODB Steps to install MongoDb Community Server:
  • 12. INSTALLATION OF MONGODB Steps to install MongoDb Community Server:
  • 13. INSTALLATION OF MONGODB Steps to install MongoDb Community Server:
  • 14. INSTALLATION OF MONGODB Steps to install MongoDb Community Server:
  • 15. INSTALLATION OF MONGODB Steps to install MongoDb Community Server:
  • 16. INSTALLATION OF MONGODB Steps to install MongoDb Community Server: “C:Program FilesMongoDBServer4.2binmongod.exe” --version “C:Program FilesMongoDBServer4.2binmongo.exe” --version “C:Program FilesMongoDBServer4.2bin” C:Program FilesMongoDBServer4.2data C:Program FilesMongoDBServer4.2log Show dbs Env -> Advance -> EnvironmentVariable -> (Path) Edit -> New -> C:Program FilesMongoDBServer4.2bin -> Ok
  • 17. CRUD IN MONGODB Create Database: Use DatabaseName Create Collection: Db.CollectionName.insertOne({Name: “Ali”,Age: 20}) Insert Many Record: Db.CollectionName.insertMany([{Name: “Ahsan”, Age: 20}, {Name: “Sara”, Age: 22}]) Show Database: Show databases Show Collection: Show collections Show data: Db.CollectionName.find() Db.CollectionName.find().pretty()