SlideShare a Scribd company logo
RDBMS Vs. NoSQL
 SQL Database
 SQL Standard
 SQL Characterstics
 SQL Database Example
 NoSQL Database
 NoSQL Database Definition
 General Characterstics
 NoSQL Database Example
8/19/2018 6:39
AM
Rdbms vs. NoSql
1
What is RDBMS
 RDBMS stands for Relational Database Management System.
 Relational Database Management System stores data in the form of rows and columns
 RDBMS is the basis for SQL, and for all modern database systems like MS SQL Server,
IBM DB2, Oracle, MySQL, and Microsoft Access.
 A relational database has following major components:
 Table, Record / Tuple, Field & Column /Attribute.
8/19/2018 6:39
AM
Rdbms vs. NoSql
2
SQl Charachteristics
 Data stored in columns and tables
 Relationships represented by data
 Data Manipulation Language
 Data Definition Language
 Transactions
 Abstraction from physical layer
8/19/2018 6:39
AM
Rdbms vs. NoSql
3
Transactions – ACID Properties
 Atomic – All of the work in a transaction completes (commit) or none of it completes
 Consistent – A transaction transforms the database from one consistent state to another
consistent State. Consistency is defined in terms of constraints.
 Isolated – The results of any changes made during a transaction are not visible until the
transaction has committed.
 Durable – The results of a committed transaction survive failures
8/19/2018 6:39
AM
Rdbms vs. NoSql
4
Example of SQL /RDBMS
 Oracle: An object-relational database management system (DBMS) that is written in the C++ language.
 IBM DB2: A family of database server products from IBM.
 Sybase: A relational database server product for businesses that is primarily used on the Unix operating
system.
 MS SQL Server: An RDBMS for enterprise-level databases that supports both SQL and NoSQL
architectures. MS SQL Server was developed by Microsoft.
 Maria DB: An enhanced, drop-in version of MySQL.
 PostgreSQL: An enterprise-level, object-relational DBMS that uses procedural languages such as Perl and
Python in addition to SQL-level code.
8/19/2018 6:39
AM
Rdbms vs. NoSql
5
Limitation of SQL
 Scalability: Users have to scale relational database on powerful servers that are expensive
and difficult to handle. To scale relational database it has to be distributed on to multiple
servers. Handling tables across different servers is a chaos.
 Complexity: In SQL server’s data has to fit into tables anyhow. If your data doesn’t fit
into tables, then you need to design your database structure that will be complex and again
difficult to handle.
 RDBMS is a great tool for solving ACID problems when data validity is crucial, when you
need to support dynamic queries.
8/19/2018 6:39
AM
Rdbms vs. NoSql
6
NoSQL Introduction
 No SQL stands for Not only Sql.
 Next Generation Databases mostly addressing some of the points: being non-relational, distributed,
opensource and horizontal scalable.
 The original intention has been modern web-scale databases.
 The movement began early 2009 and is growing rapidly. Often more characteristics apply as: schema-
free,easy replication support, simple API, eventually consistent / BASE (not ACID), a huge data
amount, and more
8/19/2018 6:39
AM
Rdbms vs. NoSql
7
NoSQL Database
 MongoDB: The most popular open-source NoSQL system. MongoDB is a document-oriented
database that stores JSON-like documents in dynamic schemas. Craigslist, eBay, and Foursquare
use MongoDB.
 CouchDB: An open source, web-oriented database developed by Apache. CouchDB uses the
JSON data exchange format to store its documents; JavaScript for indexing, combining, and
transforming documents; and HTTP for its API.
 HBase: An open source Apache project that was developed as a part of Hadoop. HBase is a
column store database written in Java. It has capabilities similar to those that BigTable provides.
8/19/2018 6:39
AM
Rdbms vs. NoSql
8
 Oracle NoSQL Database: Oracle’s NoSQL database.
 Cassandra DB: A distributed database that excels at handling extremely large amounts of
structured data. Cassandra DB is also highly scalable. Cassandra DB was created at
Facebook. It is used by Instagram, Comcast, Apple, and Spotify.
 Riak: An open source, key-value store database written in Erlang. Riak has built-in fault-
tolerance replication and automatic data distribution that enable it to offer excellent
performance.
8/19/2018 6:39
AM
Rdbms vs. NoSql
9
Architecture of NoSQL
8/19/2018 6:39
AM
Rdbms vs. NoSql
10
Architecture NoSql
 It Consist Two Layer User Interface and
 Data Modeling and Storage System
 The key concepts of the NoSQL movement is to have DBs focus on the task of high-
performance scalable data storage, and provide low-level access to a data management
layer in a way that allows data management tasks to be conveniently written in the
programming language of choice rather than having data management logic spread across
Turing-complete application languages, SQL, and sometimes even DB-specific stored
procedure languages.
8/19/2018 6:39
AM
Rdbms vs. NoSql
11
NoSQL Distinguishing Characteristics
 (Scalability) Large data volumes.
 Flexibility (query handling ,eg.FB)
 It is an unstructured way of storing data.
 NoSQL databases are the collection of key-value pair, documents, graph databases or wide-
column stores which do not have any standard schema definitions that has to be adhered to.
 It is highly and easily Scalable replication and distribution.
 Queries need to return answers quickly
8/19/2018 6:39
AM
Rdbms vs. NoSql
12
• ACID transaction properties are not needed – BASE
• CAP Theorem
• Open source development
8/19/2018 6:39
AM
Rdbms vs. NoSql
13
CAP Theorem
 Consistency
 Availability
 Partition tolerance
8/19/2018 6:39
AM
Rdbms vs. NoSql
14
Consistency
 all nodes see the same data at the same time .
 client perceives that a set of operations has occurred all at once .
 More like Atomic in ACID transaction properties
8/19/2018 6:39
AM
Rdbms vs. NoSql
15
Availability
 Node failures do not prevent survivors from continuing to operate .
Every operation must terminate in an intended Response.
8/19/2018 6:39
AM
Rdbms vs. NoSql
16
Partition Tolerance
 The system continues to operate despite arbitrary message loss .
 Operations will complete, even if individual components are unavailable.
 But Not all of the C , A , P can be Satisfied Simultaneously
8/19/2018 6:39
AM
Rdbms vs. NoSql
17
Structure of CAP
8/19/2018 6:39
AM
Rdbms vs. NoSql
18
NoSQL Database Types
 There are a variety of types:
 Column Store – Each storage block contains
 Data from only one column
 Document Store – stores documents made up of tagged elements
 Key-Value Store – Hash table of keys
8/19/2018 6:39
AM
Rdbms vs. NoSql
19
Map Reduce
 Technique for indexing and searching large data volumes
 Two Phases, Map and Reduce
 Map
 Extract sets of Key-Value pairs from underlying data
 Potentially in Parallel on multiple machines
 Reduce
 Merge and sort sets of Key-Value pairs
 Results may be useful for other searches
8/19/2018 6:39
AM
Rdbms vs. NoSql
20
Example working of Map_Reduce
8/19/2018 6:39
AM
Rdbms vs. NoSql
21
Working of Map_Reduce
8/19/2018 6:39
AM
Rdbms vs. NoSql
22
Query Example
 SQL Schema Statements
 CREATE TABLE users (user_id
Varchar(30), age Number, status char(1),
 DROP TABLE users
 MongoDB Statements
 db.createCollection("users") or
 db.users.insert( { user_id: "abc123", age:
55, status: "A" } )
 db.users.drop()
8/19/2018 6:39
AM
Rdbms vs. NoSql
23
Insert Satament for Rdbms and NoSql
 SQL INSERT Statements
 INSERT INTO users(user_id, age,
status) VALUES("bcd001", 45, "A")
 MongoDB insert() Statements
 db.users.insert( { user_id: "bcd001", age:
45, status: "A" } )
8/19/2018 6:39
AM
Rdbms vs. NoSql
24
Retrieving statements in SQL & MongoDB
 SQL SELECT Statements
 SELECT * FROM users
 MongoDB find() Statements
 db.users.find()
8/19/2018 6:39
AM
Rdbms vs. NoSql
25
8/19/2018 6:39
AM
Rdbms vs. NoSql
26
Thank You !
Have a Good Day ….
8/19/2018 6:39
AM
Rdbms vs. NoSql
27

More Related Content

PPTX
introduction to NOSQL Database
PPTX
Introduction to NoSQL Databases
PPTX
NoSQL databases - An introduction
PPTX
Introduction to NOSQL databases
PPTX
Presentation of Apache Cassandra
PPTX
Sql vs NoSQL-Presentation
PDF
NoSQL databases
PPTX
Introduction to HiveQL
introduction to NOSQL Database
Introduction to NoSQL Databases
NoSQL databases - An introduction
Introduction to NOSQL databases
Presentation of Apache Cassandra
Sql vs NoSQL-Presentation
NoSQL databases
Introduction to HiveQL

What's hot (20)

PPT
RDBMS vs NoSQL
PDF
Cassandra Database
PPTX
NOSQL Databases types and Uses
PPTX
PDF
Introduction to Cassandra
PPS
PPTX
The Basics of MongoDB
PPT
Introduction to MongoDB
PPTX
An Overview of Apache Cassandra
PDF
Data Modeling for MongoDB
PDF
Understanding Data Partitioning and Replication in Apache Cassandra
PPTX
Introduction to NoSQL
PPTX
Relational databases
PPTX
Cassandra-vs-MongoDB
PPTX
An Introduction To NoSQL & MongoDB
PDF
Cassandra Introduction & Features
PPTX
MongoDB.pptx
PPTX
Query evaluation and optimization
PPTX
Non relational databases-no sql
RDBMS vs NoSQL
Cassandra Database
NOSQL Databases types and Uses
Introduction to Cassandra
The Basics of MongoDB
Introduction to MongoDB
An Overview of Apache Cassandra
Data Modeling for MongoDB
Understanding Data Partitioning and Replication in Apache Cassandra
Introduction to NoSQL
Relational databases
Cassandra-vs-MongoDB
An Introduction To NoSQL & MongoDB
Cassandra Introduction & Features
MongoDB.pptx
Query evaluation and optimization
Non relational databases-no sql
Ad

Similar to Rdbms vs. no sql (20)

PPTX
Relational databases vs Non-relational databases
PDF
B.Vinithamani,II-M.sc.,Computer science,Bon Secours college for women,thanjavur.
PPTX
NoSQL.pptx
PPTX
Presentation on NOSQL and mongodb .pptx
PPTX
cours database pour etudiant NoSQL (1).pptx
PPT
NoSQL Seminer
PPTX
Introduction to Data Science NoSQL.pptx
PPTX
Why no sql ? Why Couchbase ?
PDF
NoSQL Databases Introduction - UTN 2013
PDF
No sql bigdata and postgresql
PDF
NOsql Presentation.pdf
PDF
NoSql and it's introduction features-Unit-1.pdf
ODP
Реляционные или нереляционные (Josh Berkus)
PPT
No sql
PPTX
NoSQL powerpoint presentation difference with rdbms
PPTX
WEB_DATABASE_chapter_4.pptx
PPT
Nosql Introduction
PDF
NOSQL- Presentation on NoSQL
PDF
NOSQL in big data is the not only structure langua.pdf
PPTX
NoSql - mayank singh
Relational databases vs Non-relational databases
B.Vinithamani,II-M.sc.,Computer science,Bon Secours college for women,thanjavur.
NoSQL.pptx
Presentation on NOSQL and mongodb .pptx
cours database pour etudiant NoSQL (1).pptx
NoSQL Seminer
Introduction to Data Science NoSQL.pptx
Why no sql ? Why Couchbase ?
NoSQL Databases Introduction - UTN 2013
No sql bigdata and postgresql
NOsql Presentation.pdf
NoSql and it's introduction features-Unit-1.pdf
Реляционные или нереляционные (Josh Berkus)
No sql
NoSQL powerpoint presentation difference with rdbms
WEB_DATABASE_chapter_4.pptx
Nosql Introduction
NOSQL- Presentation on NoSQL
NOSQL in big data is the not only structure langua.pdf
NoSql - mayank singh
Ad

Recently uploaded (20)

PDF
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...
PDF
TFEC-4-2020-Design-Guide-for-Timber-Roof-Trusses.pdf
PPTX
KTU 2019 -S7-MCN 401 MODULE 2-VINAY.pptx
PDF
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
PDF
Mohammad Mahdi Farshadian CV - Prospective PhD Student 2026
PDF
SM_6th-Sem__Cse_Internet-of-Things.pdf IOT
DOCX
573137875-Attendance-Management-System-original
PDF
PPT on Performance Review to get promotions
PPTX
bas. eng. economics group 4 presentation 1.pptx
PPTX
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
PDF
R24 SURVEYING LAB MANUAL for civil enggi
PPTX
Foundation to blockchain - A guide to Blockchain Tech
PPTX
IOT PPTs Week 10 Lecture Material.pptx of NPTEL Smart Cities contd
PPTX
Recipes for Real Time Voice AI WebRTC, SLMs and Open Source Software.pptx
PPTX
Internet of Things (IOT) - A guide to understanding
PDF
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
PDF
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
PDF
Well-logging-methods_new................
PPTX
UNIT-1 - COAL BASED THERMAL POWER PLANTS
PPTX
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...
TFEC-4-2020-Design-Guide-for-Timber-Roof-Trusses.pdf
KTU 2019 -S7-MCN 401 MODULE 2-VINAY.pptx
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
Mohammad Mahdi Farshadian CV - Prospective PhD Student 2026
SM_6th-Sem__Cse_Internet-of-Things.pdf IOT
573137875-Attendance-Management-System-original
PPT on Performance Review to get promotions
bas. eng. economics group 4 presentation 1.pptx
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
R24 SURVEYING LAB MANUAL for civil enggi
Foundation to blockchain - A guide to Blockchain Tech
IOT PPTs Week 10 Lecture Material.pptx of NPTEL Smart Cities contd
Recipes for Real Time Voice AI WebRTC, SLMs and Open Source Software.pptx
Internet of Things (IOT) - A guide to understanding
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
Well-logging-methods_new................
UNIT-1 - COAL BASED THERMAL POWER PLANTS
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...

Rdbms vs. no sql

  • 1. RDBMS Vs. NoSQL  SQL Database  SQL Standard  SQL Characterstics  SQL Database Example  NoSQL Database  NoSQL Database Definition  General Characterstics  NoSQL Database Example 8/19/2018 6:39 AM Rdbms vs. NoSql 1
  • 2. What is RDBMS  RDBMS stands for Relational Database Management System.  Relational Database Management System stores data in the form of rows and columns  RDBMS is the basis for SQL, and for all modern database systems like MS SQL Server, IBM DB2, Oracle, MySQL, and Microsoft Access.  A relational database has following major components:  Table, Record / Tuple, Field & Column /Attribute. 8/19/2018 6:39 AM Rdbms vs. NoSql 2
  • 3. SQl Charachteristics  Data stored in columns and tables  Relationships represented by data  Data Manipulation Language  Data Definition Language  Transactions  Abstraction from physical layer 8/19/2018 6:39 AM Rdbms vs. NoSql 3
  • 4. Transactions – ACID Properties  Atomic – All of the work in a transaction completes (commit) or none of it completes  Consistent – A transaction transforms the database from one consistent state to another consistent State. Consistency is defined in terms of constraints.  Isolated – The results of any changes made during a transaction are not visible until the transaction has committed.  Durable – The results of a committed transaction survive failures 8/19/2018 6:39 AM Rdbms vs. NoSql 4
  • 5. Example of SQL /RDBMS  Oracle: An object-relational database management system (DBMS) that is written in the C++ language.  IBM DB2: A family of database server products from IBM.  Sybase: A relational database server product for businesses that is primarily used on the Unix operating system.  MS SQL Server: An RDBMS for enterprise-level databases that supports both SQL and NoSQL architectures. MS SQL Server was developed by Microsoft.  Maria DB: An enhanced, drop-in version of MySQL.  PostgreSQL: An enterprise-level, object-relational DBMS that uses procedural languages such as Perl and Python in addition to SQL-level code. 8/19/2018 6:39 AM Rdbms vs. NoSql 5
  • 6. Limitation of SQL  Scalability: Users have to scale relational database on powerful servers that are expensive and difficult to handle. To scale relational database it has to be distributed on to multiple servers. Handling tables across different servers is a chaos.  Complexity: In SQL server’s data has to fit into tables anyhow. If your data doesn’t fit into tables, then you need to design your database structure that will be complex and again difficult to handle.  RDBMS is a great tool for solving ACID problems when data validity is crucial, when you need to support dynamic queries. 8/19/2018 6:39 AM Rdbms vs. NoSql 6
  • 7. NoSQL Introduction  No SQL stands for Not only Sql.  Next Generation Databases mostly addressing some of the points: being non-relational, distributed, opensource and horizontal scalable.  The original intention has been modern web-scale databases.  The movement began early 2009 and is growing rapidly. Often more characteristics apply as: schema- free,easy replication support, simple API, eventually consistent / BASE (not ACID), a huge data amount, and more 8/19/2018 6:39 AM Rdbms vs. NoSql 7
  • 8. NoSQL Database  MongoDB: The most popular open-source NoSQL system. MongoDB is a document-oriented database that stores JSON-like documents in dynamic schemas. Craigslist, eBay, and Foursquare use MongoDB.  CouchDB: An open source, web-oriented database developed by Apache. CouchDB uses the JSON data exchange format to store its documents; JavaScript for indexing, combining, and transforming documents; and HTTP for its API.  HBase: An open source Apache project that was developed as a part of Hadoop. HBase is a column store database written in Java. It has capabilities similar to those that BigTable provides. 8/19/2018 6:39 AM Rdbms vs. NoSql 8
  • 9.  Oracle NoSQL Database: Oracle’s NoSQL database.  Cassandra DB: A distributed database that excels at handling extremely large amounts of structured data. Cassandra DB is also highly scalable. Cassandra DB was created at Facebook. It is used by Instagram, Comcast, Apple, and Spotify.  Riak: An open source, key-value store database written in Erlang. Riak has built-in fault- tolerance replication and automatic data distribution that enable it to offer excellent performance. 8/19/2018 6:39 AM Rdbms vs. NoSql 9
  • 10. Architecture of NoSQL 8/19/2018 6:39 AM Rdbms vs. NoSql 10
  • 11. Architecture NoSql  It Consist Two Layer User Interface and  Data Modeling and Storage System  The key concepts of the NoSQL movement is to have DBs focus on the task of high- performance scalable data storage, and provide low-level access to a data management layer in a way that allows data management tasks to be conveniently written in the programming language of choice rather than having data management logic spread across Turing-complete application languages, SQL, and sometimes even DB-specific stored procedure languages. 8/19/2018 6:39 AM Rdbms vs. NoSql 11
  • 12. NoSQL Distinguishing Characteristics  (Scalability) Large data volumes.  Flexibility (query handling ,eg.FB)  It is an unstructured way of storing data.  NoSQL databases are the collection of key-value pair, documents, graph databases or wide- column stores which do not have any standard schema definitions that has to be adhered to.  It is highly and easily Scalable replication and distribution.  Queries need to return answers quickly 8/19/2018 6:39 AM Rdbms vs. NoSql 12
  • 13. • ACID transaction properties are not needed – BASE • CAP Theorem • Open source development 8/19/2018 6:39 AM Rdbms vs. NoSql 13
  • 14. CAP Theorem  Consistency  Availability  Partition tolerance 8/19/2018 6:39 AM Rdbms vs. NoSql 14
  • 15. Consistency  all nodes see the same data at the same time .  client perceives that a set of operations has occurred all at once .  More like Atomic in ACID transaction properties 8/19/2018 6:39 AM Rdbms vs. NoSql 15
  • 16. Availability  Node failures do not prevent survivors from continuing to operate . Every operation must terminate in an intended Response. 8/19/2018 6:39 AM Rdbms vs. NoSql 16
  • 17. Partition Tolerance  The system continues to operate despite arbitrary message loss .  Operations will complete, even if individual components are unavailable.  But Not all of the C , A , P can be Satisfied Simultaneously 8/19/2018 6:39 AM Rdbms vs. NoSql 17
  • 18. Structure of CAP 8/19/2018 6:39 AM Rdbms vs. NoSql 18
  • 19. NoSQL Database Types  There are a variety of types:  Column Store – Each storage block contains  Data from only one column  Document Store – stores documents made up of tagged elements  Key-Value Store – Hash table of keys 8/19/2018 6:39 AM Rdbms vs. NoSql 19
  • 20. Map Reduce  Technique for indexing and searching large data volumes  Two Phases, Map and Reduce  Map  Extract sets of Key-Value pairs from underlying data  Potentially in Parallel on multiple machines  Reduce  Merge and sort sets of Key-Value pairs  Results may be useful for other searches 8/19/2018 6:39 AM Rdbms vs. NoSql 20
  • 21. Example working of Map_Reduce 8/19/2018 6:39 AM Rdbms vs. NoSql 21
  • 22. Working of Map_Reduce 8/19/2018 6:39 AM Rdbms vs. NoSql 22
  • 23. Query Example  SQL Schema Statements  CREATE TABLE users (user_id Varchar(30), age Number, status char(1),  DROP TABLE users  MongoDB Statements  db.createCollection("users") or  db.users.insert( { user_id: "abc123", age: 55, status: "A" } )  db.users.drop() 8/19/2018 6:39 AM Rdbms vs. NoSql 23
  • 24. Insert Satament for Rdbms and NoSql  SQL INSERT Statements  INSERT INTO users(user_id, age, status) VALUES("bcd001", 45, "A")  MongoDB insert() Statements  db.users.insert( { user_id: "bcd001", age: 45, status: "A" } ) 8/19/2018 6:39 AM Rdbms vs. NoSql 24
  • 25. Retrieving statements in SQL & MongoDB  SQL SELECT Statements  SELECT * FROM users  MongoDB find() Statements  db.users.find() 8/19/2018 6:39 AM Rdbms vs. NoSql 25
  • 27. Thank You ! Have a Good Day …. 8/19/2018 6:39 AM Rdbms vs. NoSql 27