SlideShare a Scribd company logo
NoSQL
Concept : 
­ Non relationship
­ Distributed
­ Open source
­ Vertical scalable
­ Horizontal  scalable
­ Web 2.0 with billion database , social network search 
engineer
­ Store : each table have billion rows & each row have million 
columns ,  
­ A number of related terms :  key + value
NoSQLSQL
Json Data Format
Json Data Format
Example : Object
{
”username” : ”Paul” ,
”password” : ”123” ,
”gender” : ”male”
}
Json Data Format
Example : Array – String
[ ”dog”, ”cat” , ”chicken” , ”duck” ]
Example : Array – Number
[ 18 , 19, 20, 21, 22, 23, 24 ,25 ]
Example : Array – Object
[
{
”user” : ”Jenny”,
”gender” : ”female”
},
{
”user” : ”Jack”,
”gender” : ”male”
}
]
Json Data Format
Example : Array – Array
[
[ ”Willy” , ”Jack” , ”Jenny”] ,
[1988, 1988 , 1990],
]
Example : Array – true, false, null
[
{
”user” : ”Jack”,
”male” : true,
”female” : null,
”married” : false
}
]
Ralational Data
SQL Store
Data Non Relational
NoSQL Store
NoSQL base on Json Data Format
Json
Data Format ?
Case Study 1
Single Table
Relational Data
Json Data Format
{
“userid” : “Tim”  ,
“username “  : “Tim Vien”  ,
“useremail” : “tim.vien@mbizglobal.vn”  ,
}
Case Study 2
Single Table
Relational Data
Case Study 2
Single Table
Json Data Format [
{
“userid”  :  “Aaron” ,
“username“ :  “Aaron Macfarlane ,
“email” : “aaron.macfarlane@mbizglobal.co.ul 
},
{
“userid”  :  “Adham” ,
“username“ :  “Adham”  ,
“email” : “adham.adil@mbizglobal.co.uk
},
{
“userid”  :  “Ahassan” ,
“username“ :  “Ahmed Ahassan ,
“email” : “ahmed.ahassan@mbizglobal.co.uk
},
{
“userid”  :  “Ahmed” ,
“username“ :  “Ahmed Fawzy ,
“email” : “ahmed.fawzy@mbizglobal.net
}
]
r
Relational Data
columns
Relational row
Case Study 3
One to Many
SQL Schema
SQL Data
Case Study 3
One to Many
Json Data Fomat where userid = 1
{
“userid”   : 1 ,
“username”   : “Paul” ,
“fullname”   : “Thai Thanh Phong” ,
“contact_info” : [
{
“email” :  “windy2k7@gmail.com”         ,
“phone” : “0933833174”                    ,
“address : “Binh Chanh district, Ho Chi Minh city” ,
},
{
“email” :  “paul.thai@gmail.com”         ,
“phone” : “0933833177”                    ,
“address : “10 district, Ho Chi Minh city” ,
}
]
}
Case Study 3
One to Many
- Userid
- Username
- Fullname
- Contacts [ ]
Table users
2 Tables
Relational
Data
1 Table non
Relational Data
SQL Schema
Case Study 4
Many to Many
Case Study 4
Many to Many
SQL Data
Case Study 4
Many to Many
[
   {
“pid”  : 1 ,
“pname” : “flower” ,
“tags” : [“green”,”blue”,”orange”]
   },
   {
“pid”  : 2 ,
“pname” : “computer” ,
“tags” : [“computer”,”laptop”,”secondhand”]
   }
]
Json Data
Where pid = 1 & pid =2 
Case Study 4
Many to Many
3 Tables
Relational
Data
- pid
- pname
- tags []
Table producrs
1 Table non
Relational Data
Case Study 5
Many to Many
● Relational data : 3 tables
 Product can be in many categories
 Category can have many products
Case Study 5
Many to Many
● Data Json format :
Find all categories
for a give product id
Find all products for a
given category
Case Study 5
Many to Many
Table products Table categies
3 Tables
Relational
Data
2 Tables non
Relational Data
Case Study 6
Tree
● Relational Data
Data
Schema
Case Study 6
Tree
● Data Non Relational
- id
- title
- content
- created
- comment [ ]
- id
- title
- content
- created
table comments
Schema Data Json Fomat
Where id = 1
{
”id” : 1 ,
”title” : ”Comment 1” ,
”content” : ”Hi Paul” ,
”created” : ”2012-03-02 19:42:39”,
”comment” : [
{
”id” : 3.
”title” : ”Reply Comment 1”,
”content” : ”Reply Paul”.
”created” : ”2012-03-30 00:00:00”
},
{
”id” : 5.
”title” : ”Reply Comment 1”,
”content” : ”Hi Paul, How are you ?”,
”created” : ”2012-03-08 00:00:00”
}
]
}
Case Study 7
Relational Data Schema : 4 Tables
Case Study 6
● Data Non Relational Schema : 2 Tables
Case Study 7
● Data Example Non Relational
Conclusion
● What is NoSQL ?
● What is Json data format in NoSQL ?
● Cases study convert from table in relational
data to table in non relational data
Paul Thai
Email : paul.thai@mbizglobal.vn
Phone : 0933 833 174
Thanks

More Related Content

What's hot

Big Data for Small Businesses & Startups
Big Data for Small Businesses & StartupsBig Data for Small Businesses & Startups
Big Data for Small Businesses & Startups
Fujio Turner
 
Introduction to NoSQL with MongoDB
Introduction to NoSQL with MongoDBIntroduction to NoSQL with MongoDB
Introduction to NoSQL with MongoDB
Hector Correa
 
No sql distilled-distilled
No sql distilled-distilledNo sql distilled-distilled
No sql distilled-distilled
rICh morrow
 
Towards research data knowledge graphs
Towards research data knowledge graphsTowards research data knowledge graphs
Towards research data knowledge graphs
Stefan Dietze
 
Clustering in Data Mining
Clustering in Data MiningClustering in Data Mining
Clustering in Data Mining
S.Mostafa Sayyedi
 
Stop! Don't make these mistakes in your document database!
Stop! Don't make these mistakes in your document database!Stop! Don't make these mistakes in your document database!
Stop! Don't make these mistakes in your document database!
Lauren Hayward Schaefer
 
Multi-model database
Multi-model databaseMulti-model database
Multi-model database
Jiaheng Lu
 
Insight Data Engineering project
Insight Data Engineering projectInsight Data Engineering project
Insight Data Engineering project
Hoa Nguyen
 
MongoDB Days Silicon Valley: Jumpstart: Ops/Admin 101
MongoDB Days Silicon Valley: Jumpstart: Ops/Admin 101MongoDB Days Silicon Valley: Jumpstart: Ops/Admin 101
MongoDB Days Silicon Valley: Jumpstart: Ops/Admin 101
MongoDB
 
Graph databases
Graph databasesGraph databases
Graph databases
Karol Grzegorczyk
 

What's hot (10)

Big Data for Small Businesses & Startups
Big Data for Small Businesses & StartupsBig Data for Small Businesses & Startups
Big Data for Small Businesses & Startups
 
Introduction to NoSQL with MongoDB
Introduction to NoSQL with MongoDBIntroduction to NoSQL with MongoDB
Introduction to NoSQL with MongoDB
 
No sql distilled-distilled
No sql distilled-distilledNo sql distilled-distilled
No sql distilled-distilled
 
Towards research data knowledge graphs
Towards research data knowledge graphsTowards research data knowledge graphs
Towards research data knowledge graphs
 
Clustering in Data Mining
Clustering in Data MiningClustering in Data Mining
Clustering in Data Mining
 
Stop! Don't make these mistakes in your document database!
Stop! Don't make these mistakes in your document database!Stop! Don't make these mistakes in your document database!
Stop! Don't make these mistakes in your document database!
 
Multi-model database
Multi-model databaseMulti-model database
Multi-model database
 
Insight Data Engineering project
Insight Data Engineering projectInsight Data Engineering project
Insight Data Engineering project
 
MongoDB Days Silicon Valley: Jumpstart: Ops/Admin 101
MongoDB Days Silicon Valley: Jumpstart: Ops/Admin 101MongoDB Days Silicon Valley: Jumpstart: Ops/Admin 101
MongoDB Days Silicon Valley: Jumpstart: Ops/Admin 101
 
Graph databases
Graph databasesGraph databases
Graph databases
 

Viewers also liked

My last vacation
My last vacationMy last vacation
Finding online resources @ ITOrgEd2011
Finding online resources @ ITOrgEd2011Finding online resources @ ITOrgEd2011
Finding online resources @ ITOrgEd2011
Vassilis Protonotarios
 
Presentation of the ISLE Network @ the SPDECE 2012 Symposium
Presentation of the ISLE Network @ the SPDECE 2012 SymposiumPresentation of the ISLE Network @ the SPDECE 2012 Symposium
Presentation of the ISLE Network @ the SPDECE 2012 Symposium
Vassilis Protonotarios
 
Maxi Portfolio
Maxi PortfolioMaxi Portfolio
Maxi Portfolio
Magnor Maxi
 
Green Education Using Open Educational Resources (OER) (SPDECE 2012)
Green Education Using Open Educational Resources (OER) (SPDECE 2012)Green Education Using Open Educational Resources (OER) (SPDECE 2012)
Green Education Using Open Educational Resources (OER) (SPDECE 2012)
Vassilis Protonotarios
 
Using Agricultural Learning Portals in Developing Countries: The case of Orga...
Using Agricultural Learning Portals in Developing Countries: The case of Orga...Using Agricultural Learning Portals in Developing Countries: The case of Orga...
Using Agricultural Learning Portals in Developing Countries: The case of Orga...
Vassilis Protonotarios
 
Legal interoperability in the fishery and marine data ecosystem
Legal interoperability in the fishery and marine data ecosystemLegal interoperability in the fishery and marine data ecosystem
Legal interoperability in the fishery and marine data ecosystem
Vassilis Protonotarios
 
Agricultural Data Interest Group & Wheat Data Working Group of RDA
Agricultural Data Interest Group & Wheat Data Working Group of RDAAgricultural Data Interest Group & Wheat Data Working Group of RDA
Agricultural Data Interest Group & Wheat Data Working Group of RDA
Vassilis Protonotarios
 
Agro-Know internal training: Using the Agro-Know blog
Agro-Know internal training: Using the Agro-Know blogAgro-Know internal training: Using the Agro-Know blog
Agro-Know internal training: Using the Agro-Know blog
Vassilis Protonotarios
 
Introduction to Agriculture & Food Safety Data
Introduction to Agriculture & Food Safety DataIntroduction to Agriculture & Food Safety Data
Introduction to Agriculture & Food Safety Data
Vassilis Protonotarios
 
Doing business with Open Data in agriculture
Doing business with Open Data in agricultureDoing business with Open Data in agriculture
Doing business with Open Data in agriculture
Vassilis Protonotarios
 
Template of a training scenario presentation
Template of a training scenario presentationTemplate of a training scenario presentation
Template of a training scenario presentation
Vassilis Protonotarios
 
Business valuation-methods
Business valuation-methodsBusiness valuation-methods
Business valuation-methods
Swamy Nlnj
 
Nationaal Parkeercongres 2011
Nationaal Parkeercongres 2011Nationaal Parkeercongres 2011
Nationaal Parkeercongres 2011jackylodewijks
 
Developing a network of content providers: The case of Organic.Edunet
Developing a network of content providers: The case of Organic.EdunetDeveloping a network of content providers: The case of Organic.Edunet
Developing a network of content providers: The case of Organic.Edunet
Vassilis Protonotarios
 

Viewers also liked (15)

My last vacation
My last vacationMy last vacation
My last vacation
 
Finding online resources @ ITOrgEd2011
Finding online resources @ ITOrgEd2011Finding online resources @ ITOrgEd2011
Finding online resources @ ITOrgEd2011
 
Presentation of the ISLE Network @ the SPDECE 2012 Symposium
Presentation of the ISLE Network @ the SPDECE 2012 SymposiumPresentation of the ISLE Network @ the SPDECE 2012 Symposium
Presentation of the ISLE Network @ the SPDECE 2012 Symposium
 
Maxi Portfolio
Maxi PortfolioMaxi Portfolio
Maxi Portfolio
 
Green Education Using Open Educational Resources (OER) (SPDECE 2012)
Green Education Using Open Educational Resources (OER) (SPDECE 2012)Green Education Using Open Educational Resources (OER) (SPDECE 2012)
Green Education Using Open Educational Resources (OER) (SPDECE 2012)
 
Using Agricultural Learning Portals in Developing Countries: The case of Orga...
Using Agricultural Learning Portals in Developing Countries: The case of Orga...Using Agricultural Learning Portals in Developing Countries: The case of Orga...
Using Agricultural Learning Portals in Developing Countries: The case of Orga...
 
Legal interoperability in the fishery and marine data ecosystem
Legal interoperability in the fishery and marine data ecosystemLegal interoperability in the fishery and marine data ecosystem
Legal interoperability in the fishery and marine data ecosystem
 
Agricultural Data Interest Group & Wheat Data Working Group of RDA
Agricultural Data Interest Group & Wheat Data Working Group of RDAAgricultural Data Interest Group & Wheat Data Working Group of RDA
Agricultural Data Interest Group & Wheat Data Working Group of RDA
 
Agro-Know internal training: Using the Agro-Know blog
Agro-Know internal training: Using the Agro-Know blogAgro-Know internal training: Using the Agro-Know blog
Agro-Know internal training: Using the Agro-Know blog
 
Introduction to Agriculture & Food Safety Data
Introduction to Agriculture & Food Safety DataIntroduction to Agriculture & Food Safety Data
Introduction to Agriculture & Food Safety Data
 
Doing business with Open Data in agriculture
Doing business with Open Data in agricultureDoing business with Open Data in agriculture
Doing business with Open Data in agriculture
 
Template of a training scenario presentation
Template of a training scenario presentationTemplate of a training scenario presentation
Template of a training scenario presentation
 
Business valuation-methods
Business valuation-methodsBusiness valuation-methods
Business valuation-methods
 
Nationaal Parkeercongres 2011
Nationaal Parkeercongres 2011Nationaal Parkeercongres 2011
Nationaal Parkeercongres 2011
 
Developing a network of content providers: The case of Organic.Edunet
Developing a network of content providers: The case of Organic.EdunetDeveloping a network of content providers: The case of Organic.Edunet
Developing a network of content providers: The case of Organic.Edunet
 

Similar to No sql present

Introducing Azure DocumentDB - NoSQL, No Problem
Introducing Azure DocumentDB - NoSQL, No ProblemIntroducing Azure DocumentDB - NoSQL, No Problem
Introducing Azure DocumentDB - NoSQL, No Problem
Andrew Liu
 
Webinar: Strongly Typed Languages and Flexible Schemas
Webinar: Strongly Typed Languages and Flexible SchemasWebinar: Strongly Typed Languages and Flexible Schemas
Webinar: Strongly Typed Languages and Flexible Schemas
MongoDB
 
Strongly Typed Languages and Flexible Schemas
Strongly Typed Languages and Flexible SchemasStrongly Typed Languages and Flexible Schemas
Strongly Typed Languages and Flexible Schemas
Norberto Leite
 
Harnessing The Power of Search - Liferay DEVCON 2015, Darmstadt, Germany
Harnessing The Power of Search - Liferay DEVCON 2015, Darmstadt, GermanyHarnessing The Power of Search - Liferay DEVCON 2015, Darmstadt, Germany
Harnessing The Power of Search - Liferay DEVCON 2015, Darmstadt, Germany
André Ricardo Barreto de Oliveira
 
Making Sense of Schema on Read
Making Sense of Schema on ReadMaking Sense of Schema on Read
Making Sense of Schema on Read
Kent Graziano
 
Getting Started with NoSQL
Getting Started with NoSQLGetting Started with NoSQL
Getting Started with NoSQL
Aaron Benton
 
The Django Web Framework (EuroPython 2006)
The Django Web Framework (EuroPython 2006)The Django Web Framework (EuroPython 2006)
The Django Web Framework (EuroPython 2006)
Simon Willison
 
Test Trend Analysis : Towards robust, reliable and timely tests
Test Trend Analysis : Towards robust, reliable and timely testsTest Trend Analysis : Towards robust, reliable and timely tests
Test Trend Analysis : Towards robust, reliable and timely tests
Hugh McCamphill
 
Practical MongoDB
Practical MongoDBPractical MongoDB
Practical MongoDB
Will Button
 
Google's BigTable
Google's BigTableGoogle's BigTable
Google's BigTable
george.james
 
Semi Formal Model for Document Oriented Databases
Semi Formal Model for Document Oriented DatabasesSemi Formal Model for Document Oriented Databases
Semi Formal Model for Document Oriented Databases
Daniel Coupal
 
What/How to do with GraphQL? - Valentyn Ostakh (ENG) | Ruby Meditation 27
What/How to do with GraphQL? - Valentyn Ostakh (ENG) | Ruby Meditation 27What/How to do with GraphQL? - Valentyn Ostakh (ENG) | Ruby Meditation 27
What/How to do with GraphQL? - Valentyn Ostakh (ENG) | Ruby Meditation 27
Ruby Meditation
 
Types Working for You, Not Against You
Types Working for You, Not Against YouTypes Working for You, Not Against You
Types Working for You, Not Against You
C4Media
 
MongoDB World 2019: Building an Efficient and Performant Data Model: Real Wor...
MongoDB World 2019: Building an Efficient and Performant Data Model: Real Wor...MongoDB World 2019: Building an Efficient and Performant Data Model: Real Wor...
MongoDB World 2019: Building an Efficient and Performant Data Model: Real Wor...
MongoDB
 
Elasticsearch
ElasticsearchElasticsearch
Elasticsearch
Ricardo Peres
 
How to Be a 10x Data Scientist
How to Be a 10x Data Scientist How to Be a 10x Data Scientist
How to Be a 10x Data Scientist
Stephanie Kim
 
Functional es6
Functional es6Functional es6
Functional es6
Natalia Zaslavskaya
 
Test trend analysis: Towards robust reliable and timely tests
Test trend analysis: Towards robust reliable and timely testsTest trend analysis: Towards robust reliable and timely tests
Test trend analysis: Towards robust reliable and timely tests
Hugh McCamphill
 
The rise of json in rdbms land jab17
The rise of json in rdbms land jab17The rise of json in rdbms land jab17
The rise of json in rdbms land jab17
alikonweb
 
Dan Sullivan - Data Analytics and Text Mining with MongoDB - NoSQL matters Du...
Dan Sullivan - Data Analytics and Text Mining with MongoDB - NoSQL matters Du...Dan Sullivan - Data Analytics and Text Mining with MongoDB - NoSQL matters Du...
Dan Sullivan - Data Analytics and Text Mining with MongoDB - NoSQL matters Du...
NoSQLmatters
 

Similar to No sql present (20)

Introducing Azure DocumentDB - NoSQL, No Problem
Introducing Azure DocumentDB - NoSQL, No ProblemIntroducing Azure DocumentDB - NoSQL, No Problem
Introducing Azure DocumentDB - NoSQL, No Problem
 
Webinar: Strongly Typed Languages and Flexible Schemas
Webinar: Strongly Typed Languages and Flexible SchemasWebinar: Strongly Typed Languages and Flexible Schemas
Webinar: Strongly Typed Languages and Flexible Schemas
 
Strongly Typed Languages and Flexible Schemas
Strongly Typed Languages and Flexible SchemasStrongly Typed Languages and Flexible Schemas
Strongly Typed Languages and Flexible Schemas
 
Harnessing The Power of Search - Liferay DEVCON 2015, Darmstadt, Germany
Harnessing The Power of Search - Liferay DEVCON 2015, Darmstadt, GermanyHarnessing The Power of Search - Liferay DEVCON 2015, Darmstadt, Germany
Harnessing The Power of Search - Liferay DEVCON 2015, Darmstadt, Germany
 
Making Sense of Schema on Read
Making Sense of Schema on ReadMaking Sense of Schema on Read
Making Sense of Schema on Read
 
Getting Started with NoSQL
Getting Started with NoSQLGetting Started with NoSQL
Getting Started with NoSQL
 
The Django Web Framework (EuroPython 2006)
The Django Web Framework (EuroPython 2006)The Django Web Framework (EuroPython 2006)
The Django Web Framework (EuroPython 2006)
 
Test Trend Analysis : Towards robust, reliable and timely tests
Test Trend Analysis : Towards robust, reliable and timely testsTest Trend Analysis : Towards robust, reliable and timely tests
Test Trend Analysis : Towards robust, reliable and timely tests
 
Practical MongoDB
Practical MongoDBPractical MongoDB
Practical MongoDB
 
Google's BigTable
Google's BigTableGoogle's BigTable
Google's BigTable
 
Semi Formal Model for Document Oriented Databases
Semi Formal Model for Document Oriented DatabasesSemi Formal Model for Document Oriented Databases
Semi Formal Model for Document Oriented Databases
 
What/How to do with GraphQL? - Valentyn Ostakh (ENG) | Ruby Meditation 27
What/How to do with GraphQL? - Valentyn Ostakh (ENG) | Ruby Meditation 27What/How to do with GraphQL? - Valentyn Ostakh (ENG) | Ruby Meditation 27
What/How to do with GraphQL? - Valentyn Ostakh (ENG) | Ruby Meditation 27
 
Types Working for You, Not Against You
Types Working for You, Not Against YouTypes Working for You, Not Against You
Types Working for You, Not Against You
 
MongoDB World 2019: Building an Efficient and Performant Data Model: Real Wor...
MongoDB World 2019: Building an Efficient and Performant Data Model: Real Wor...MongoDB World 2019: Building an Efficient and Performant Data Model: Real Wor...
MongoDB World 2019: Building an Efficient and Performant Data Model: Real Wor...
 
Elasticsearch
ElasticsearchElasticsearch
Elasticsearch
 
How to Be a 10x Data Scientist
How to Be a 10x Data Scientist How to Be a 10x Data Scientist
How to Be a 10x Data Scientist
 
Functional es6
Functional es6Functional es6
Functional es6
 
Test trend analysis: Towards robust reliable and timely tests
Test trend analysis: Towards robust reliable and timely testsTest trend analysis: Towards robust reliable and timely tests
Test trend analysis: Towards robust reliable and timely tests
 
The rise of json in rdbms land jab17
The rise of json in rdbms land jab17The rise of json in rdbms land jab17
The rise of json in rdbms land jab17
 
Dan Sullivan - Data Analytics and Text Mining with MongoDB - NoSQL matters Du...
Dan Sullivan - Data Analytics and Text Mining with MongoDB - NoSQL matters Du...Dan Sullivan - Data Analytics and Text Mining with MongoDB - NoSQL matters Du...
Dan Sullivan - Data Analytics and Text Mining with MongoDB - NoSQL matters Du...
 

No sql present

  • 4. Json Data Format Example : Object { ”username” : ”Paul” , ”password” : ”123” , ”gender” : ”male” }
  • 5. Json Data Format Example : Array – String [ ”dog”, ”cat” , ”chicken” , ”duck” ] Example : Array – Number [ 18 , 19, 20, 21, 22, 23, 24 ,25 ] Example : Array – Object [ { ”user” : ”Jenny”, ”gender” : ”female” }, { ”user” : ”Jack”, ”gender” : ”male” } ]
  • 6. Json Data Format Example : Array – Array [ [ ”Willy” , ”Jack” , ”Jenny”] , [1988, 1988 , 1990], ] Example : Array – true, false, null [ { ”user” : ”Jack”, ”male” : true, ”female” : null, ”married” : false } ]
  • 9. NoSQL base on Json Data Format Json Data Format ?
  • 10. Case Study 1 Single Table Relational Data Json Data Format { “userid” : “Tim”  , “username “  : “Tim Vien”  , “useremail” : “tim.vien@mbizglobal.vn”  , }
  • 11. Case Study 2 Single Table Relational Data
  • 12. Case Study 2 Single Table Json Data Format [ { “userid”  :  “Aaron” , “username“ :  “Aaron Macfarlane , “email” : “aaron.macfarlane@mbizglobal.co.ul  }, { “userid”  :  “Adham” , “username“ :  “Adham”  , “email” : “adham.adil@mbizglobal.co.uk }, { “userid”  :  “Ahassan” , “username“ :  “Ahmed Ahassan , “email” : “ahmed.ahassan@mbizglobal.co.uk }, { “userid”  :  “Ahmed” , “username“ :  “Ahmed Fawzy , “email” : “ahmed.fawzy@mbizglobal.net } ] r Relational Data columns Relational row
  • 13. Case Study 3 One to Many SQL Schema SQL Data
  • 14. Case Study 3 One to Many Json Data Fomat where userid = 1 { “userid”   : 1 , “username”   : “Paul” , “fullname”   : “Thai Thanh Phong” , “contact_info” : [ { “email” :  “windy2k7@gmail.com”         , “phone” : “0933833174”                    , “address : “Binh Chanh district, Ho Chi Minh city” , }, { “email” :  “paul.thai@gmail.com”         , “phone” : “0933833177”                    , “address : “10 district, Ho Chi Minh city” , } ] }
  • 15. Case Study 3 One to Many - Userid - Username - Fullname - Contacts [ ] Table users 2 Tables Relational Data 1 Table non Relational Data
  • 16. SQL Schema Case Study 4 Many to Many
  • 17. Case Study 4 Many to Many SQL Data
  • 18. Case Study 4 Many to Many [    { “pid”  : 1 , “pname” : “flower” , “tags” : [“green”,”blue”,”orange”]    },    { “pid”  : 2 , “pname” : “computer” , “tags” : [“computer”,”laptop”,”secondhand”]    } ] Json Data Where pid = 1 & pid =2 
  • 19. Case Study 4 Many to Many 3 Tables Relational Data - pid - pname - tags [] Table producrs 1 Table non Relational Data
  • 20. Case Study 5 Many to Many ● Relational data : 3 tables  Product can be in many categories  Category can have many products
  • 21. Case Study 5 Many to Many ● Data Json format : Find all categories for a give product id Find all products for a given category
  • 22. Case Study 5 Many to Many Table products Table categies 3 Tables Relational Data 2 Tables non Relational Data
  • 23. Case Study 6 Tree ● Relational Data Data Schema
  • 24. Case Study 6 Tree ● Data Non Relational - id - title - content - created - comment [ ] - id - title - content - created table comments Schema Data Json Fomat Where id = 1 { ”id” : 1 , ”title” : ”Comment 1” , ”content” : ”Hi Paul” , ”created” : ”2012-03-02 19:42:39”, ”comment” : [ { ”id” : 3. ”title” : ”Reply Comment 1”, ”content” : ”Reply Paul”. ”created” : ”2012-03-30 00:00:00” }, { ”id” : 5. ”title” : ”Reply Comment 1”, ”content” : ”Hi Paul, How are you ?”, ”created” : ”2012-03-08 00:00:00” } ] }
  • 25. Case Study 7 Relational Data Schema : 4 Tables
  • 26. Case Study 6 ● Data Non Relational Schema : 2 Tables
  • 27. Case Study 7 ● Data Example Non Relational
  • 28. Conclusion ● What is NoSQL ? ● What is Json data format in NoSQL ? ● Cases study convert from table in relational data to table in non relational data
  • 29. Paul Thai Email : paul.thai@mbizglobal.vn Phone : 0933 833 174 Thanks