SlideShare a Scribd company logo
1 of 27
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

What's hot

Introduction to MongoDB
Introduction to MongoDBIntroduction to MongoDB
Introduction to MongoDBMike Dirolf
 
HBase Tutorial For Beginners | HBase Architecture | HBase Tutorial | Hadoop T...
HBase Tutorial For Beginners | HBase Architecture | HBase Tutorial | Hadoop T...HBase Tutorial For Beginners | HBase Architecture | HBase Tutorial | Hadoop T...
HBase Tutorial For Beginners | HBase Architecture | HBase Tutorial | Hadoop T...Simplilearn
 
Hadoop introduction , Why and What is Hadoop ?
Hadoop introduction , Why and What is  Hadoop ?Hadoop introduction , Why and What is  Hadoop ?
Hadoop introduction , Why and What is Hadoop ?sudhakara st
 
Introduction to MongoDB.pptx
Introduction to MongoDB.pptxIntroduction to MongoDB.pptx
Introduction to MongoDB.pptxSurya937648
 
Spark overview
Spark overviewSpark overview
Spark overviewLisa Hua
 
Hive Tutorial | Hive Architecture | Hive Tutorial For Beginners | Hive In Had...
Hive Tutorial | Hive Architecture | Hive Tutorial For Beginners | Hive In Had...Hive Tutorial | Hive Architecture | Hive Tutorial For Beginners | Hive In Had...
Hive Tutorial | Hive Architecture | Hive Tutorial For Beginners | Hive In Had...Simplilearn
 
Apache Cassandra at the Geek2Geek Berlin
Apache Cassandra at the Geek2Geek BerlinApache Cassandra at the Geek2Geek Berlin
Apache Cassandra at the Geek2Geek BerlinChristian Johannsen
 
Introduction to MongoDB
Introduction to MongoDBIntroduction to MongoDB
Introduction to MongoDBRavi Teja
 
Introduction to spark
Introduction to sparkIntroduction to spark
Introduction to sparkHome
 
introduction to NOSQL Database
introduction to NOSQL Databaseintroduction to NOSQL Database
introduction to NOSQL Databasenehabsairam
 
Introduction to Apache Cassandra
Introduction to Apache CassandraIntroduction to Apache Cassandra
Introduction to Apache CassandraRobert Stupp
 
Cassandra at eBay - Cassandra Summit 2012
Cassandra at eBay - Cassandra Summit 2012Cassandra at eBay - Cassandra Summit 2012
Cassandra at eBay - Cassandra Summit 2012Jay Patel
 
Hadoop Overview & Architecture
Hadoop Overview & Architecture  Hadoop Overview & Architecture
Hadoop Overview & Architecture EMC
 

What's hot (20)

Cassandra NoSQL Tutorial
Cassandra NoSQL TutorialCassandra NoSQL Tutorial
Cassandra NoSQL Tutorial
 
Introduction to redis
Introduction to redisIntroduction to redis
Introduction to redis
 
Introduction to MongoDB
Introduction to MongoDBIntroduction to MongoDB
Introduction to MongoDB
 
HBase Tutorial For Beginners | HBase Architecture | HBase Tutorial | Hadoop T...
HBase Tutorial For Beginners | HBase Architecture | HBase Tutorial | Hadoop T...HBase Tutorial For Beginners | HBase Architecture | HBase Tutorial | Hadoop T...
HBase Tutorial For Beginners | HBase Architecture | HBase Tutorial | Hadoop T...
 
Hadoop introduction , Why and What is Hadoop ?
Hadoop introduction , Why and What is  Hadoop ?Hadoop introduction , Why and What is  Hadoop ?
Hadoop introduction , Why and What is Hadoop ?
 
Introduction to MongoDB.pptx
Introduction to MongoDB.pptxIntroduction to MongoDB.pptx
Introduction to MongoDB.pptx
 
Spark overview
Spark overviewSpark overview
Spark overview
 
redis basics
redis basicsredis basics
redis basics
 
Hive Tutorial | Hive Architecture | Hive Tutorial For Beginners | Hive In Had...
Hive Tutorial | Hive Architecture | Hive Tutorial For Beginners | Hive In Had...Hive Tutorial | Hive Architecture | Hive Tutorial For Beginners | Hive In Had...
Hive Tutorial | Hive Architecture | Hive Tutorial For Beginners | Hive In Had...
 
Hadoop Overview kdd2011
Hadoop Overview kdd2011Hadoop Overview kdd2011
Hadoop Overview kdd2011
 
Apache Cassandra at the Geek2Geek Berlin
Apache Cassandra at the Geek2Geek BerlinApache Cassandra at the Geek2Geek Berlin
Apache Cassandra at the Geek2Geek Berlin
 
Introduction to MongoDB
Introduction to MongoDBIntroduction to MongoDB
Introduction to MongoDB
 
NoSQL databases
NoSQL databasesNoSQL databases
NoSQL databases
 
Nosql seminar
Nosql seminarNosql seminar
Nosql seminar
 
Introduction to spark
Introduction to sparkIntroduction to spark
Introduction to spark
 
introduction to NOSQL Database
introduction to NOSQL Databaseintroduction to NOSQL Database
introduction to NOSQL Database
 
Introduction to Apache Cassandra
Introduction to Apache CassandraIntroduction to Apache Cassandra
Introduction to Apache Cassandra
 
Redis introduction
Redis introductionRedis introduction
Redis introduction
 
Cassandra at eBay - Cassandra Summit 2012
Cassandra at eBay - Cassandra Summit 2012Cassandra at eBay - Cassandra Summit 2012
Cassandra at eBay - Cassandra Summit 2012
 
Hadoop Overview & Architecture
Hadoop Overview & Architecture  Hadoop Overview & Architecture
Hadoop Overview & Architecture
 

Similar to Rdbms vs. no sql

NOSQL- Presentation on NoSQL
NOSQL- Presentation on NoSQLNOSQL- Presentation on NoSQL
NOSQL- Presentation on NoSQLRamakant Soni
 
NOSQL in big data is the not only structure langua.pdf
NOSQL in big data is the not only structure langua.pdfNOSQL in big data is the not only structure langua.pdf
NOSQL in big data is the not only structure langua.pdfajajkhan16
 
NoSQL Options Compared
NoSQL Options ComparedNoSQL Options Compared
NoSQL Options ComparedSergey Bushik
 
A Seminar on NoSQL Databases.
A Seminar on NoSQL Databases.A Seminar on NoSQL Databases.
A Seminar on NoSQL Databases.Navdeep Charan
 
No sqlpresentation
No sqlpresentationNo sqlpresentation
No sqlpresentationSalma Gouia
 
NOSQL Databases types and Uses
NOSQL Databases types and UsesNOSQL Databases types and Uses
NOSQL Databases types and UsesSuvradeep Rudra
 
Prepare Your Data For The Cloud
Prepare Your Data For The CloudPrepare Your Data For The Cloud
Prepare Your Data For The CloudIndicThreads
 
Unit II -BIG DATA ANALYTICS.docx
Unit II -BIG DATA ANALYTICS.docxUnit II -BIG DATA ANALYTICS.docx
Unit II -BIG DATA ANALYTICS.docxvvpadhu
 
Why no sql ? Why Couchbase ?
Why no sql ? Why Couchbase ?Why no sql ? Why Couchbase ?
Why no sql ? Why Couchbase ?Ahmed Rashwan
 
Non relational databases-no sql
Non relational databases-no sqlNon relational databases-no sql
Non relational databases-no sqlRam kumar
 
Redis Cashe is an open-source distributed in-memory data store.
Redis Cashe is an open-source distributed in-memory data store.Redis Cashe is an open-source distributed in-memory data store.
Redis Cashe is an open-source distributed in-memory data store.Artan Ajredini
 

Similar to Rdbms vs. no sql (20)

NOSQL- Presentation on NoSQL
NOSQL- Presentation on NoSQLNOSQL- Presentation on NoSQL
NOSQL- Presentation on NoSQL
 
NOSQL in big data is the not only structure langua.pdf
NOSQL in big data is the not only structure langua.pdfNOSQL in big data is the not only structure langua.pdf
NOSQL in big data is the not only structure langua.pdf
 
NoSQL
NoSQLNoSQL
NoSQL
 
NoSQL Options Compared
NoSQL Options ComparedNoSQL Options Compared
NoSQL Options Compared
 
A Seminar on NoSQL Databases.
A Seminar on NoSQL Databases.A Seminar on NoSQL Databases.
A Seminar on NoSQL Databases.
 
the rising no sql technology
the rising no sql technologythe rising no sql technology
the rising no sql technology
 
No sqlpresentation
No sqlpresentationNo sqlpresentation
No sqlpresentation
 
NoSQL Basics and MongDB
NoSQL Basics and  MongDBNoSQL Basics and  MongDB
NoSQL Basics and MongDB
 
NOSQL Databases types and Uses
NOSQL Databases types and UsesNOSQL Databases types and Uses
NOSQL Databases types and Uses
 
NoSQL Seminer
NoSQL SeminerNoSQL Seminer
NoSQL Seminer
 
Prepare Your Data For The Cloud
Prepare Your Data For The CloudPrepare Your Data For The Cloud
Prepare Your Data For The Cloud
 
Preparing your data for the cloud
Preparing your data for the cloudPreparing your data for the cloud
Preparing your data for the cloud
 
Report 2.0.docx
Report 2.0.docxReport 2.0.docx
Report 2.0.docx
 
Unit II -BIG DATA ANALYTICS.docx
Unit II -BIG DATA ANALYTICS.docxUnit II -BIG DATA ANALYTICS.docx
Unit II -BIG DATA ANALYTICS.docx
 
Why no sql ? Why Couchbase ?
Why no sql ? Why Couchbase ?Why no sql ? Why Couchbase ?
Why no sql ? Why Couchbase ?
 
Report 1.0.docx
Report 1.0.docxReport 1.0.docx
Report 1.0.docx
 
No sql
No sqlNo sql
No sql
 
Non relational databases-no sql
Non relational databases-no sqlNon relational databases-no sql
Non relational databases-no sql
 
Redis Cashe is an open-source distributed in-memory data store.
Redis Cashe is an open-source distributed in-memory data store.Redis Cashe is an open-source distributed in-memory data store.
Redis Cashe is an open-source distributed in-memory data store.
 
Preparing yourdataforcloud
Preparing yourdataforcloudPreparing yourdataforcloud
Preparing yourdataforcloud
 

Recently uploaded

UNIT-III FMM. DIMENSIONAL ANALYSIS
UNIT-III FMM.        DIMENSIONAL ANALYSISUNIT-III FMM.        DIMENSIONAL ANALYSIS
UNIT-III FMM. DIMENSIONAL ANALYSISrknatarajan
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations120cr0395
 
Online banking management system project.pdf
Online banking management system project.pdfOnline banking management system project.pdf
Online banking management system project.pdfKamal Acharya
 
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...Call Girls in Nagpur High Profile
 
Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxIntroduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxupamatechverse
 
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSMANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSSIVASHANKAR N
 
University management System project report..pdf
University management System project report..pdfUniversity management System project report..pdf
University management System project report..pdfKamal Acharya
 
MANUFACTURING PROCESS-II UNIT-1 THEORY OF METAL CUTTING
MANUFACTURING PROCESS-II UNIT-1 THEORY OF METAL CUTTINGMANUFACTURING PROCESS-II UNIT-1 THEORY OF METAL CUTTING
MANUFACTURING PROCESS-II UNIT-1 THEORY OF METAL CUTTINGSIVASHANKAR N
 
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service NashikCall Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service NashikCall Girls in Nagpur High Profile
 
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performancesivaprakash250
 
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptxBSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptxfenichawla
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Dr.Costas Sachpazis
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCall Girls in Nagpur High Profile
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
result management system report for college project
result management system report for college projectresult management system report for college project
result management system report for college projectTonystark477637
 

Recently uploaded (20)

(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
 
UNIT-III FMM. DIMENSIONAL ANALYSIS
UNIT-III FMM.        DIMENSIONAL ANALYSISUNIT-III FMM.        DIMENSIONAL ANALYSIS
UNIT-III FMM. DIMENSIONAL ANALYSIS
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations
 
Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024
 
Online banking management system project.pdf
Online banking management system project.pdfOnline banking management system project.pdf
Online banking management system project.pdf
 
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
 
Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxIntroduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptx
 
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSMANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
 
University management System project report..pdf
University management System project report..pdfUniversity management System project report..pdf
University management System project report..pdf
 
MANUFACTURING PROCESS-II UNIT-1 THEORY OF METAL CUTTING
MANUFACTURING PROCESS-II UNIT-1 THEORY OF METAL CUTTINGMANUFACTURING PROCESS-II UNIT-1 THEORY OF METAL CUTTING
MANUFACTURING PROCESS-II UNIT-1 THEORY OF METAL CUTTING
 
Roadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and RoutesRoadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and Routes
 
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service NashikCall Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
 
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performance
 
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptxBSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
 
result management system report for college project
result management system report for college projectresult management system report for college project
result management system report for college project
 

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