SlideShare a Scribd company logo
Presented By:-
Jayesh Bharda (116373)
Bhavesh Sarvaiya (115347)
Ketan Navadiya (115331)
∗ What is NoSQL?
∗ What is MongoDB?
∗ Database
∗ Collection
∗ Document
∗ MongoDB to SQL Terminology
∗ Advantages of MongoDB over RDBMS
∗ CRUD Operation
∗ References
Topics
∗ MongoDB is a No SQL database.
∗ MongoDB is a cross-platform, document oriented
database that provides, high performance, high
availability, and easy scalability.
∗ MongoDB works on concept of collection and
document.
∗ It is written in C++.
What is MongoDB?
∗ Database is a physical container for collections.
∗ Each database gets its own set of files on the file
system.
∗ A single MongoDB server typically has multiple
databases.
Database
∗ Collection is a group of MongoDB documents.
∗ It is the equivalent of an RDBMS table.
∗ A collection exists within a single database.
∗ Documents within a collection can have different
fields.
∗ Typically, all documents in a collection are of similar
or related purpose.
Collection
∗ Documents exist inside a collection.
∗ Documentation can almost be thought of as rows in a
sql database, except they have key difference:
∗ Documents are schema-less
∗ Document used JSON Syntax
∗ The maximum size of a document is 16 megabytes
∗ Not Relational
Document
MongoDB SQL
database database
collection table
document record (row)
field column
embedded documents join
primary key (Default key _id provided
by mongodb itself)
primary key (user designated)
Index index
MongoDB to SQL Terminology
∗ Schema less − MongoDB is a document database in
which one collection holds different documents.
Number of fields, content and size of the document
can differ from one document to another.
• Structure of a single object is clear.
• No complex joins.
∗ Ease of scale-out
• Conversion/mapping of application objects to database
objects not needed.
Advantages of MongoDB over
RDBMS
∗ Document Oriented Storage − Data is stored in the
form of JSON style documents.
∗ Index on any attribute
∗ Replication and high availability
∗ Rich queries
∗ Fast in-place updates
∗ Professional support by MongoDB
Why Use MongoDB?
∗ Big Data
∗ Content Management and Delivery
∗ Mobile and Social Infrastructure
∗ User Data Management
∗ Data Hub
Where to Use MongoDB?
User of MongoDB
∗ The use Command
• MongoDB use DATABASE_NAME is used to create database.
∗ Syntax
• use DATABASE_NAME
∗ Example
• use mydb
∗ To check your currently selected database
• Db
∗ To check your databases list
• show dbs
∗ To drop a existing database
• db.dropDatabase()
• This will delete the selected database
Create Database
∗String
∗Integer
∗Boolean
∗Double
∗Min/Max key
∗Array
∗Timestamp
∗Object
∗Null
∗Date
∗Objecy ID
Datatypes
∗ The createCollection() Method
• MongoDB db.createCollection(name, options) is used to
create collection.
∗ Syntax
• db.createCollection(name, options)
∗ Example
• db.createCollection(“student")
• db.createCollection("mycol", { capped : true, autoIndexId :
true, size : 6142800, max : 10000 } )
Create Collection
∗ In MongoDB, you don't need to create collection.
∗ MongoDB creates collection automatically, when you
insert some document.
• db.stud.insert({"name" :”bhavesh"})
∗ db.collection.drop()
• db.stud.drop()
Continue…
∗ To insert data into MongoDB collection, to use
MongoDB's insert() or save() method.
∗ Syntax
• db.COLLECTION_NAME.insert(document)
∗ Example
• db.student.insert({no:”115347”,name:”bhavesh”,address:{t
o:”ayavej”,taluka:”jesar”,dist:”Bhavnagar”,pin:”364510”}})
Insert Document
∗ The find() Method
• To query data from MongoDB collection, you need to
use MongoDB's find()method.
∗ Example
• db.student.find()
∗ limit() Method
• db.student. find().limit(1)
Query Document
∗ skip() method
• In MongoDB, skip() method is used to skip the document. It is
used with find() and limit() methods.
∗ Syntax
• db.COLLECTION_NAME.find().limit(NUMBER).skip(NUMBER)
∗ Example
• db.student.find().limit(1).skip(2)
∗ sort() method
• db.COLLECTION_NAME.find().sort({KEY:1})
• db.student.find().sort(“name”:-1)
Continue…
∗ Update() method is used to update or modify the
existing documents of a collection.
∗ Syntax:
• db.COLLECTION_NAME.update(SELECTIOIN_CRITERIA,
UPDATED_DATA)
∗ Example
• db.student.find()
Update documents
∗ db.student.update({name:”bhavesh”},{$set:{name:”b
havo”}})
∗ db.student.find()
Continue…
∗ remove() method is used to remove a document from
the collection.
∗ Syntax
• db.COLLECTION_NAME.remove(DELLETION_CRITTERIA)
∗ Example
• db.student.remove({name:”bhavo”})
Delete Document
∗ https://docs.mongodb.com
∗ https://www.tutorialspoint.com
∗ https://www.javatpoint.com
References
Thank You

More Related Content

What's hot (20)

PPTX
Introduction to mongo db
NexThoughts Technologies
 
PPTX
Mongo DB: Fundamentals & Basics/ An Overview of MongoDB/ Mongo DB tutorials
SpringPeople
 
PDF
Electron, databases, and RxDB
Ben Gotow
 
PDF
Quick overview on mongo db
Eman Mohamed
 
PDF
Updating materialized views and caches using kafka
Zach Cox
 
PPTX
MongoDB
jsterce
 
PDF
Mongo db basics
Claudio Montoya
 
PPTX
Mongo DB Presentation
Jaya Naresh Kovela
 
PPT
Connecting to a REST API in iOS
gillygize
 
PPTX
Mongo db – document oriented database
Wojciech Sznapka
 
PPTX
Introduction to MongoDB
NodeXperts
 
PPTX
MongoDb and NoSQL
TO THE NEW | Technology
 
PPTX
Webinar: Building Your First MongoDB App
MongoDB
 
PPTX
MongoDB
nikhil2807
 
PPTX
Mongo DB 102
Abhijeet Vaikar
 
PDF
Introduction to MongoDB
Mike Dirolf
 
PDF
NGCC 2016 - Support large partitions
Robert Stupp
 
KEY
MongoDB NYC Python
Mike Dirolf
 
PPTX
MongoDB Schema Design by Examples
Hadi Ariawan
 
Introduction to mongo db
NexThoughts Technologies
 
Mongo DB: Fundamentals & Basics/ An Overview of MongoDB/ Mongo DB tutorials
SpringPeople
 
Electron, databases, and RxDB
Ben Gotow
 
Quick overview on mongo db
Eman Mohamed
 
Updating materialized views and caches using kafka
Zach Cox
 
MongoDB
jsterce
 
Mongo db basics
Claudio Montoya
 
Mongo DB Presentation
Jaya Naresh Kovela
 
Connecting to a REST API in iOS
gillygize
 
Mongo db – document oriented database
Wojciech Sznapka
 
Introduction to MongoDB
NodeXperts
 
MongoDb and NoSQL
TO THE NEW | Technology
 
Webinar: Building Your First MongoDB App
MongoDB
 
MongoDB
nikhil2807
 
Mongo DB 102
Abhijeet Vaikar
 
Introduction to MongoDB
Mike Dirolf
 
NGCC 2016 - Support large partitions
Robert Stupp
 
MongoDB NYC Python
Mike Dirolf
 
MongoDB Schema Design by Examples
Hadi Ariawan
 

Similar to Mongo db nosql (1) (20)

PPTX
MongoDB introduction features -presentation - 2.pptx
sampathkumar546444
 
PPTX
MongoDB-presentation.pptx
tarungupta276841
 
PPTX
mongo.pptx
tarungupta276841
 
PPTX
Introduction to MongoDB
S.Shayan Daneshvar
 
PDF
3-Mongodb and Mapreduce Programming.pdf
MarianJRuben
 
PPTX
Mongodb Introduction
Nabeel Naqeebi
 
PPTX
Introduction To MongoDB
ElieHannouch
 
PDF
MongoDB
wiTTyMinds1
 
PPTX
Introduction to MongoDB.pptx
Surya937648
 
PDF
Mongodb tutorial
Ashoka Vanjare
 
PDF
Mongodb
Apurva Vyas
 
PDF
MongoDB Interview Questions PDF By ScholarHat
Scholarhat
 
PPT
Mongo Bb - NoSQL tutorial
Mohan Rathour
 
PPTX
MongoDB Knowledge share
Mr Kyaing
 
PPTX
mongodb introduction11111111111111111111
VADAPALLYPRAVEENKUMA1
 
PPTX
Introduction to mongoose and mongodband others
kumutharamasamy75
 
PPTX
fard car.pptx
tarungupta276841
 
PDF
Mongodb tutorial
sachin486983
 
PDF
MongoDB NoSQL database a deep dive -MyWhitePaper
Rajesh Kumar
 
MongoDB introduction features -presentation - 2.pptx
sampathkumar546444
 
MongoDB-presentation.pptx
tarungupta276841
 
mongo.pptx
tarungupta276841
 
Introduction to MongoDB
S.Shayan Daneshvar
 
3-Mongodb and Mapreduce Programming.pdf
MarianJRuben
 
Mongodb Introduction
Nabeel Naqeebi
 
Introduction To MongoDB
ElieHannouch
 
MongoDB
wiTTyMinds1
 
Introduction to MongoDB.pptx
Surya937648
 
Mongodb tutorial
Ashoka Vanjare
 
Mongodb
Apurva Vyas
 
MongoDB Interview Questions PDF By ScholarHat
Scholarhat
 
Mongo Bb - NoSQL tutorial
Mohan Rathour
 
MongoDB Knowledge share
Mr Kyaing
 
mongodb introduction11111111111111111111
VADAPALLYPRAVEENKUMA1
 
Introduction to mongoose and mongodband others
kumutharamasamy75
 
fard car.pptx
tarungupta276841
 
Mongodb tutorial
sachin486983
 
MongoDB NoSQL database a deep dive -MyWhitePaper
Rajesh Kumar
 
Ad

Recently uploaded (20)

PPTX
Java Native Memory Leaks: The Hidden Villain Behind JVM Performance Issues
Tier1 app
 
PPTX
Tally software_Introduction_Presentation
AditiBansal54083
 
PDF
Build It, Buy It, or Already Got It? Make Smarter Martech Decisions
bbedford2
 
PPTX
Equipment Management Software BIS Safety UK.pptx
BIS Safety Software
 
DOCX
Import Data Form Excel to Tally Services
Tally xperts
 
PDF
iTop VPN With Crack Lifetime Activation Key-CODE
utfefguu
 
PPTX
Agentic Automation Journey Session 1/5: Context Grounding and Autopilot for E...
klpathrudu
 
PDF
Automate Cybersecurity Tasks with Python
VICTOR MAESTRE RAMIREZ
 
PDF
Odoo CRM vs Zoho CRM: Honest Comparison 2025
Odiware Technologies Private Limited
 
PPTX
A Complete Guide to Salesforce SMS Integrations Build Scalable Messaging With...
360 SMS APP
 
PDF
Streamline Contractor Lifecycle- TECH EHS Solution
TECH EHS Solution
 
PDF
Thread In Android-Mastering Concurrency for Responsive Apps.pdf
Nabin Dhakal
 
PDF
Capcut Pro Crack For PC Latest Version {Fully Unlocked} 2025
hashhshs786
 
PPTX
MiniTool Power Data Recovery Full Crack Latest 2025
muhammadgurbazkhan
 
PDF
Mobile CMMS Solutions Empowering the Frontline Workforce
CryotosCMMSSoftware
 
PPTX
Fundamentals_of_Microservices_Architecture.pptx
MuhammadUzair504018
 
PPTX
Comprehensive Guide: Shoviv Exchange to Office 365 Migration Tool 2025
Shoviv Software
 
PDF
MiniTool Partition Wizard 12.8 Crack License Key LATEST
hashhshs786
 
PPTX
Migrating Millions of Users with Debezium, Apache Kafka, and an Acyclic Synch...
MD Sayem Ahmed
 
PPTX
Engineering the Java Web Application (MVC)
abhishekoza1981
 
Java Native Memory Leaks: The Hidden Villain Behind JVM Performance Issues
Tier1 app
 
Tally software_Introduction_Presentation
AditiBansal54083
 
Build It, Buy It, or Already Got It? Make Smarter Martech Decisions
bbedford2
 
Equipment Management Software BIS Safety UK.pptx
BIS Safety Software
 
Import Data Form Excel to Tally Services
Tally xperts
 
iTop VPN With Crack Lifetime Activation Key-CODE
utfefguu
 
Agentic Automation Journey Session 1/5: Context Grounding and Autopilot for E...
klpathrudu
 
Automate Cybersecurity Tasks with Python
VICTOR MAESTRE RAMIREZ
 
Odoo CRM vs Zoho CRM: Honest Comparison 2025
Odiware Technologies Private Limited
 
A Complete Guide to Salesforce SMS Integrations Build Scalable Messaging With...
360 SMS APP
 
Streamline Contractor Lifecycle- TECH EHS Solution
TECH EHS Solution
 
Thread In Android-Mastering Concurrency for Responsive Apps.pdf
Nabin Dhakal
 
Capcut Pro Crack For PC Latest Version {Fully Unlocked} 2025
hashhshs786
 
MiniTool Power Data Recovery Full Crack Latest 2025
muhammadgurbazkhan
 
Mobile CMMS Solutions Empowering the Frontline Workforce
CryotosCMMSSoftware
 
Fundamentals_of_Microservices_Architecture.pptx
MuhammadUzair504018
 
Comprehensive Guide: Shoviv Exchange to Office 365 Migration Tool 2025
Shoviv Software
 
MiniTool Partition Wizard 12.8 Crack License Key LATEST
hashhshs786
 
Migrating Millions of Users with Debezium, Apache Kafka, and an Acyclic Synch...
MD Sayem Ahmed
 
Engineering the Java Web Application (MVC)
abhishekoza1981
 
Ad

Mongo db nosql (1)

  • 1. Presented By:- Jayesh Bharda (116373) Bhavesh Sarvaiya (115347) Ketan Navadiya (115331)
  • 2. ∗ What is NoSQL? ∗ What is MongoDB? ∗ Database ∗ Collection ∗ Document ∗ MongoDB to SQL Terminology ∗ Advantages of MongoDB over RDBMS ∗ CRUD Operation ∗ References Topics
  • 3. ∗ MongoDB is a No SQL database. ∗ MongoDB is a cross-platform, document oriented database that provides, high performance, high availability, and easy scalability. ∗ MongoDB works on concept of collection and document. ∗ It is written in C++. What is MongoDB?
  • 4. ∗ Database is a physical container for collections. ∗ Each database gets its own set of files on the file system. ∗ A single MongoDB server typically has multiple databases. Database
  • 5. ∗ Collection is a group of MongoDB documents. ∗ It is the equivalent of an RDBMS table. ∗ A collection exists within a single database. ∗ Documents within a collection can have different fields. ∗ Typically, all documents in a collection are of similar or related purpose. Collection
  • 6. ∗ Documents exist inside a collection. ∗ Documentation can almost be thought of as rows in a sql database, except they have key difference: ∗ Documents are schema-less ∗ Document used JSON Syntax ∗ The maximum size of a document is 16 megabytes ∗ Not Relational Document
  • 7. MongoDB SQL database database collection table document record (row) field column embedded documents join primary key (Default key _id provided by mongodb itself) primary key (user designated) Index index MongoDB to SQL Terminology
  • 8. ∗ Schema less − MongoDB is a document database in which one collection holds different documents. Number of fields, content and size of the document can differ from one document to another. • Structure of a single object is clear. • No complex joins. ∗ Ease of scale-out • Conversion/mapping of application objects to database objects not needed. Advantages of MongoDB over RDBMS
  • 9. ∗ Document Oriented Storage − Data is stored in the form of JSON style documents. ∗ Index on any attribute ∗ Replication and high availability ∗ Rich queries ∗ Fast in-place updates ∗ Professional support by MongoDB Why Use MongoDB?
  • 10. ∗ Big Data ∗ Content Management and Delivery ∗ Mobile and Social Infrastructure ∗ User Data Management ∗ Data Hub Where to Use MongoDB?
  • 12. ∗ The use Command • MongoDB use DATABASE_NAME is used to create database. ∗ Syntax • use DATABASE_NAME ∗ Example • use mydb ∗ To check your currently selected database • Db ∗ To check your databases list • show dbs ∗ To drop a existing database • db.dropDatabase() • This will delete the selected database Create Database
  • 14. ∗ The createCollection() Method • MongoDB db.createCollection(name, options) is used to create collection. ∗ Syntax • db.createCollection(name, options) ∗ Example • db.createCollection(“student") • db.createCollection("mycol", { capped : true, autoIndexId : true, size : 6142800, max : 10000 } ) Create Collection
  • 15. ∗ In MongoDB, you don't need to create collection. ∗ MongoDB creates collection automatically, when you insert some document. • db.stud.insert({"name" :”bhavesh"}) ∗ db.collection.drop() • db.stud.drop() Continue…
  • 16. ∗ To insert data into MongoDB collection, to use MongoDB's insert() or save() method. ∗ Syntax • db.COLLECTION_NAME.insert(document) ∗ Example • db.student.insert({no:”115347”,name:”bhavesh”,address:{t o:”ayavej”,taluka:”jesar”,dist:”Bhavnagar”,pin:”364510”}}) Insert Document
  • 17. ∗ The find() Method • To query data from MongoDB collection, you need to use MongoDB's find()method. ∗ Example • db.student.find() ∗ limit() Method • db.student. find().limit(1) Query Document
  • 18. ∗ skip() method • In MongoDB, skip() method is used to skip the document. It is used with find() and limit() methods. ∗ Syntax • db.COLLECTION_NAME.find().limit(NUMBER).skip(NUMBER) ∗ Example • db.student.find().limit(1).skip(2) ∗ sort() method • db.COLLECTION_NAME.find().sort({KEY:1}) • db.student.find().sort(“name”:-1) Continue…
  • 19. ∗ Update() method is used to update or modify the existing documents of a collection. ∗ Syntax: • db.COLLECTION_NAME.update(SELECTIOIN_CRITERIA, UPDATED_DATA) ∗ Example • db.student.find() Update documents
  • 21. ∗ remove() method is used to remove a document from the collection. ∗ Syntax • db.COLLECTION_NAME.remove(DELLETION_CRITTERIA) ∗ Example • db.student.remove({name:”bhavo”}) Delete Document