SlideShare a Scribd company logo
2
Most read
3
Most read
4
Most read
MySQL vs. MongoDB: Looking At
Relational and Non-Relational Databases
By
Krishnapriya
What is MongoDB?
• MongoDB is an open-source database developed by MongoDB,
Inc.
• MongoDB stores data in JSON-like documents that can vary in
structure.
• Related information is stored together for fast query access
through the MongoDB query language.
• MongoDB uses dynamic schemas, meaning that you can create
records without first defining the structure, such as the fields or
the types of their values.
• You can change the structure of records (which we call
documents) simply by adding new fields or deleting existing ones.
• This data model give you the ability to represent hierarchical
relationships, to store arrays, and other more complex structures
easily.
What is MySQL?
• MySQL is a popular open-source relational database
management system (RDBMS) that is developed,
distributed and supported by Oracle Corporation.
• Like other relational systems, MySQL stores data in
tables and uses structured query language (SQL) for
database access.
• In MySQL, you pre-define your database schema based
on your requirements and set up rules to govern the
relationships between fields in your tables.
• In MySQL, related information may be stored in separate
tables, but associated through the use of joins. In this
way, data duplication is minimized.
Differences
MySQL MongoDB
MySQL represents data
in tables and rows.
MongoDB represents data
as collections of
JSON documents.
MySQL is stands for Structured
Query Language.
MongoDB uses object querying.
One of the best things about
MySQL and relational databases
in general is the supports JOIN
operation. 
MongoDB does not support joins,
but it does multi-dimensional
data types such as arrays and
even other documents. Placing
one document inside another is
referred to as embedding
MySQL requires you to define
your tables and columns before
you can store anything, and every
row in a table must have the
same columns.
One of my favorite things about
MongoDB is that you don't define
the schema. You just drop in
documents, and two documents
within a collection don't even
Terminology and Concepts
 A comprehensive list of statements 

More Related Content

PPTX
Mongodb vs mysql
PPTX
Nosql-Module 1 PPT.pptx
ZIP
NoSQL databases
PPTX
NOSQL Databases types and Uses
PPTX
How to Migrate from Oracle to EDB Postgres
PPTX
Basics of MongoDB
PDF
NoSQL databases
PPTX
Temporal database
Mongodb vs mysql
Nosql-Module 1 PPT.pptx
NoSQL databases
NOSQL Databases types and Uses
How to Migrate from Oracle to EDB Postgres
Basics of MongoDB
NoSQL databases
Temporal database

What's hot (20)

PPTX
NOSQL and MongoDB Database
PPTX
Relational databases vs Non-relational databases
PPT
Lecture2 oracle ppt
PPTX
Chapter1: NoSQL: It’s about making intelligent choices
PPTX
NOSQL vs SQL
PPTX
SQL vs MongoDB
PPTX
03 hive query language (hql)
PPT
9. Document Oriented Databases
PPTX
No SQL- The Future Of Data Storage
PPTX
Consistency in NoSQL
ODP
Apache hadoop hbase
PDF
Migration From Oracle to PostgreSQL
PPTX
Apache hive introduction
PPTX
Oracle architecture ppt
PDF
Introduction to Neo4j
PPTX
Introduction to Graph Databases
PPTX
Introduction to MongoDB.pptx
PPTX
Data models in NoSQL
PPT
Hadoop HDFS.ppt
PPT
Oracle archi ppt
NOSQL and MongoDB Database
Relational databases vs Non-relational databases
Lecture2 oracle ppt
Chapter1: NoSQL: It’s about making intelligent choices
NOSQL vs SQL
SQL vs MongoDB
03 hive query language (hql)
9. Document Oriented Databases
No SQL- The Future Of Data Storage
Consistency in NoSQL
Apache hadoop hbase
Migration From Oracle to PostgreSQL
Apache hive introduction
Oracle architecture ppt
Introduction to Neo4j
Introduction to Graph Databases
Introduction to MongoDB.pptx
Data models in NoSQL
Hadoop HDFS.ppt
Oracle archi ppt
Ad

Viewers also liked (10)

PPTX
Database and types of database
PPTX
Database and databases available in the market
PDF
Relational vs. Non-Relational
PPTX
Database Management Systems 1
PPTX
Trends in the Database
PDF
Latest trends in database management
PPT
Types dbms
PPT
Database Management Systems (DBMS)
DOCX
Database management system
PPT
Fundamentals of Database ppt ch01
Database and types of database
Database and databases available in the market
Relational vs. Non-Relational
Database Management Systems 1
Trends in the Database
Latest trends in database management
Types dbms
Database Management Systems (DBMS)
Database management system
Fundamentals of Database ppt ch01
Ad

Similar to My sql vs mongo (20)

PPTX
DSA _ASSIGNMENT_1(MONGODB VS RDBMS).pptx
PPTX
Unit-10.pptx
PDF
MongoDB Lab Manual (1).pdf used in data science
PDF
Streaming Analytics Unit 5 notes for engineers
PPTX
No SQL - MongoDB
PPTX
Mongodb - NoSql Database
PPTX
nosql [Autosaved].pptx
PPT
Mongo Bb - NoSQL tutorial
PDF
Analysis on NoSQL: MongoDB Tool
PPTX
Unit 3 MongDB
PPTX
mongodb11 (1) (1).pptx
PDF
All About Database v1.1
PPTX
Mongo db
PPTX
PPTX
Introduction to databases (1).pptx
PPTX
WEB_DATABASE_chapter_4.pptx
PPTX
MongoDB.pptx
PPT
NoSQL Databases
PDF
Presentation On NoSQL Databases
PPTX
kfddnloiujhfsgklllmnbfhigldktktktkykydlhjjclj
DSA _ASSIGNMENT_1(MONGODB VS RDBMS).pptx
Unit-10.pptx
MongoDB Lab Manual (1).pdf used in data science
Streaming Analytics Unit 5 notes for engineers
No SQL - MongoDB
Mongodb - NoSql Database
nosql [Autosaved].pptx
Mongo Bb - NoSQL tutorial
Analysis on NoSQL: MongoDB Tool
Unit 3 MongDB
mongodb11 (1) (1).pptx
All About Database v1.1
Mongo db
Introduction to databases (1).pptx
WEB_DATABASE_chapter_4.pptx
MongoDB.pptx
NoSQL Databases
Presentation On NoSQL Databases
kfddnloiujhfsgklllmnbfhigldktktktkykydlhjjclj

More from krishnapriya Tadepalli (14)

PDF
Web content accessibility
PPTX
Data visualization tools
PDF
Drupal vs sitecore comparisons
PPT
Open Source Content Management Systems
PDF
Comparisons Wiki vs CMS
PDF
Sending emails through PHP
PDF
PHP Making Web Forms
PDF
Php introduction
PDF
Using advanced features in joomla
PDF
Presentation joomla-introduction
PDF
Making web forms using php
PDF
Language enabling
Web content accessibility
Data visualization tools
Drupal vs sitecore comparisons
Open Source Content Management Systems
Comparisons Wiki vs CMS
Sending emails through PHP
PHP Making Web Forms
Php introduction
Using advanced features in joomla
Presentation joomla-introduction
Making web forms using php
Language enabling

Recently uploaded (20)

PDF
Sunset Boulevard Student Revision Booklet
PDF
High Ground Student Revision Booklet Preview
PPTX
ACUTE NASOPHARYNGITIS. pptx
PDF
Cell Biology Basics: Cell Theory, Structure, Types, and Organelles | BS Level...
PDF
LDMMIA Reiki Yoga S2 L3 Vod Sample Preview
PDF
Origin of periodic table-Mendeleev’s Periodic-Modern Periodic table
PDF
Module 3: Health Systems Tutorial Slides S2 2025
PPTX
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
PPTX
How to Manage Loyalty Points in Odoo 18 Sales
PPTX
UNDER FIVE CLINICS OR WELL BABY CLINICS.pptx
PDF
Piense y hagase Rico - Napoleon Hill Ccesa007.pdf
PDF
Electrolyte Disturbances and Fluid Management A clinical and physiological ap...
PPTX
NOI Hackathon - Summer Edition - GreenThumber.pptx
PDF
Mga Unang Hakbang Tungo Sa Tao by Joe Vibar Nero.pdf
PDF
2.Reshaping-Indias-Political-Map.ppt/pdf/8th class social science Exploring S...
PPTX
Week 4 Term 3 Study Techniques revisited.pptx
PDF
PG-BPSDMP 2 TAHUN 2025PG-BPSDMP 2 TAHUN 2025.pdf
PPTX
family health care settings home visit - unit 6 - chn 1 - gnm 1st year.pptx
PDF
Phylum Arthropoda: Characteristics and Classification, Entomology Lecture
PDF
3.The-Rise-of-the-Marathas.pdfppt/pdf/8th class social science Exploring Soci...
Sunset Boulevard Student Revision Booklet
High Ground Student Revision Booklet Preview
ACUTE NASOPHARYNGITIS. pptx
Cell Biology Basics: Cell Theory, Structure, Types, and Organelles | BS Level...
LDMMIA Reiki Yoga S2 L3 Vod Sample Preview
Origin of periodic table-Mendeleev’s Periodic-Modern Periodic table
Module 3: Health Systems Tutorial Slides S2 2025
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
How to Manage Loyalty Points in Odoo 18 Sales
UNDER FIVE CLINICS OR WELL BABY CLINICS.pptx
Piense y hagase Rico - Napoleon Hill Ccesa007.pdf
Electrolyte Disturbances and Fluid Management A clinical and physiological ap...
NOI Hackathon - Summer Edition - GreenThumber.pptx
Mga Unang Hakbang Tungo Sa Tao by Joe Vibar Nero.pdf
2.Reshaping-Indias-Political-Map.ppt/pdf/8th class social science Exploring S...
Week 4 Term 3 Study Techniques revisited.pptx
PG-BPSDMP 2 TAHUN 2025PG-BPSDMP 2 TAHUN 2025.pdf
family health care settings home visit - unit 6 - chn 1 - gnm 1st year.pptx
Phylum Arthropoda: Characteristics and Classification, Entomology Lecture
3.The-Rise-of-the-Marathas.pdfppt/pdf/8th class social science Exploring Soci...

My sql vs mongo

  • 1. MySQL vs. MongoDB: Looking At Relational and Non-Relational Databases By Krishnapriya
  • 2. What is MongoDB? • MongoDB is an open-source database developed by MongoDB, Inc. • MongoDB stores data in JSON-like documents that can vary in structure. • Related information is stored together for fast query access through the MongoDB query language. • MongoDB uses dynamic schemas, meaning that you can create records without first defining the structure, such as the fields or the types of their values. • You can change the structure of records (which we call documents) simply by adding new fields or deleting existing ones. • This data model give you the ability to represent hierarchical relationships, to store arrays, and other more complex structures easily.
  • 3. What is MySQL? • MySQL is a popular open-source relational database management system (RDBMS) that is developed, distributed and supported by Oracle Corporation. • Like other relational systems, MySQL stores data in tables and uses structured query language (SQL) for database access. • In MySQL, you pre-define your database schema based on your requirements and set up rules to govern the relationships between fields in your tables. • In MySQL, related information may be stored in separate tables, but associated through the use of joins. In this way, data duplication is minimized.
  • 4. Differences MySQL MongoDB MySQL represents data in tables and rows. MongoDB represents data as collections of JSON documents. MySQL is stands for Structured Query Language. MongoDB uses object querying. One of the best things about MySQL and relational databases in general is the supports JOIN operation.  MongoDB does not support joins, but it does multi-dimensional data types such as arrays and even other documents. Placing one document inside another is referred to as embedding MySQL requires you to define your tables and columns before you can store anything, and every row in a table must have the same columns. One of my favorite things about MongoDB is that you don't define the schema. You just drop in documents, and two documents within a collection don't even
  • 6.  A comprehensive list of statements