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

What's hot

NOSQL vs SQL
NOSQL vs SQLNOSQL vs SQL
NOSQL vs SQL
Mohammed Fazuluddin
 
MongoDB.pptx
MongoDB.pptxMongoDB.pptx
MongoDB.pptx
Sigit52
 
Databricks Platform.pptx
Databricks Platform.pptxDatabricks Platform.pptx
Databricks Platform.pptx
Alex Ivy
 
Mongo indexes
Mongo indexesMongo indexes
Mongo indexes
paradokslabs
 
Intro to HBase
Intro to HBaseIntro to HBase
Intro to HBase
alexbaranau
 
Survey of High Performance NoSQL Systems
Survey of High Performance NoSQL SystemsSurvey of High Performance NoSQL Systems
Survey of High Performance NoSQL Systems
ScyllaDB
 
Introducing Azure SQL Data Warehouse
Introducing Azure SQL Data WarehouseIntroducing Azure SQL Data Warehouse
Introducing Azure SQL Data Warehouse
James Serra
 
SQL & NoSQL
SQL & NoSQLSQL & NoSQL
Getting Started with Delta Lake on Databricks
Getting Started with Delta Lake on DatabricksGetting Started with Delta Lake on Databricks
Getting Started with Delta Lake on Databricks
Knoldus Inc.
 
Introduction to PySpark
Introduction to PySparkIntroduction to PySpark
Introduction to PySpark
Russell Jurney
 
Databricks Fundamentals
Databricks FundamentalsDatabricks Fundamentals
Databricks Fundamentals
Dalibor Wijas
 
Introduction of Redis as NoSQL Database
Introduction of Redis as NoSQL DatabaseIntroduction of Redis as NoSQL Database
Introduction of Redis as NoSQL Database
Abhijeet Shekhar
 
Relational and non relational database 7
Relational and non relational database 7Relational and non relational database 7
Relational and non relational database 7
abdulrahmanhelan
 
Big Data - Applications and Technologies Overview
Big Data - Applications and Technologies OverviewBig Data - Applications and Technologies Overview
Big Data - Applications and Technologies Overview
Sivashankar Ganapathy
 
Hadoop File system (HDFS)
Hadoop File system (HDFS)Hadoop File system (HDFS)
Hadoop File system (HDFS)
Prashant Gupta
 
Masterclass - Redshift
Masterclass - RedshiftMasterclass - Redshift
Masterclass - Redshift
Amazon Web Services
 
Mongo db intro.pptx
Mongo db intro.pptxMongo db intro.pptx
Mongo db intro.pptx
JWORKS powered by Ordina
 
Building the Data Lake with Azure Data Factory and Data Lake Analytics
Building the Data Lake with Azure Data Factory and Data Lake AnalyticsBuilding the Data Lake with Azure Data Factory and Data Lake Analytics
Building the Data Lake with Azure Data Factory and Data Lake Analytics
Khalid Salama
 
Graph Databases – Benefits and Risks
Graph Databases – Benefits and RisksGraph Databases – Benefits and Risks
Graph Databases – Benefits and Risks
DATAVERSITY
 

What's hot (20)

NOSQL vs SQL
NOSQL vs SQLNOSQL vs SQL
NOSQL vs SQL
 
MongoDB.pptx
MongoDB.pptxMongoDB.pptx
MongoDB.pptx
 
Databricks Platform.pptx
Databricks Platform.pptxDatabricks Platform.pptx
Databricks Platform.pptx
 
Mongo indexes
Mongo indexesMongo indexes
Mongo indexes
 
Intro to HBase
Intro to HBaseIntro to HBase
Intro to HBase
 
Introduction to NoSQL
Introduction to NoSQLIntroduction to NoSQL
Introduction to NoSQL
 
Survey of High Performance NoSQL Systems
Survey of High Performance NoSQL SystemsSurvey of High Performance NoSQL Systems
Survey of High Performance NoSQL Systems
 
Introducing Azure SQL Data Warehouse
Introducing Azure SQL Data WarehouseIntroducing Azure SQL Data Warehouse
Introducing Azure SQL Data Warehouse
 
SQL & NoSQL
SQL & NoSQLSQL & NoSQL
SQL & NoSQL
 
Getting Started with Delta Lake on Databricks
Getting Started with Delta Lake on DatabricksGetting Started with Delta Lake on Databricks
Getting Started with Delta Lake on Databricks
 
Introduction to PySpark
Introduction to PySparkIntroduction to PySpark
Introduction to PySpark
 
Databricks Fundamentals
Databricks FundamentalsDatabricks Fundamentals
Databricks Fundamentals
 
Introduction of Redis as NoSQL Database
Introduction of Redis as NoSQL DatabaseIntroduction of Redis as NoSQL Database
Introduction of Redis as NoSQL Database
 
Relational and non relational database 7
Relational and non relational database 7Relational and non relational database 7
Relational and non relational database 7
 
Big Data - Applications and Technologies Overview
Big Data - Applications and Technologies OverviewBig Data - Applications and Technologies Overview
Big Data - Applications and Technologies Overview
 
Hadoop File system (HDFS)
Hadoop File system (HDFS)Hadoop File system (HDFS)
Hadoop File system (HDFS)
 
Masterclass - Redshift
Masterclass - RedshiftMasterclass - Redshift
Masterclass - Redshift
 
Mongo db intro.pptx
Mongo db intro.pptxMongo db intro.pptx
Mongo db intro.pptx
 
Building the Data Lake with Azure Data Factory and Data Lake Analytics
Building the Data Lake with Azure Data Factory and Data Lake AnalyticsBuilding the Data Lake with Azure Data Factory and Data Lake Analytics
Building the Data Lake with Azure Data Factory and Data Lake Analytics
 
Graph Databases – Benefits and Risks
Graph Databases – Benefits and RisksGraph Databases – Benefits and Risks
Graph Databases – Benefits and Risks
 

Similar to Rdbms vs. no sql

NOSQL- Presentation on NoSQL
NOSQL- Presentation on NoSQLNOSQL- Presentation on NoSQL
NOSQL- Presentation on NoSQL
Ramakant 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.pdf
ajajkhan16
 
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
 
the rising no sql technology
the rising no sql technologythe rising no sql technology
the rising no sql technology
INFOGAIN PUBLICATION
 
No sqlpresentation
No sqlpresentationNo sqlpresentation
No sqlpresentation
Salma Gouia
 
NoSQL Basics and MongDB
NoSQL Basics and  MongDBNoSQL Basics and  MongDB
NoSQL Basics and MongDB
Shamima Yeasmin Mukta
 
NOSQL Databases types and Uses
NOSQL Databases types and UsesNOSQL Databases types and Uses
NOSQL Databases types and Uses
Suvradeep Rudra
 
Prepare Your Data For The Cloud
Prepare Your Data For The CloudPrepare Your Data For The Cloud
Prepare Your Data For The Cloud
IndicThreads
 
Preparing your data for the cloud
Preparing your data for the cloudPreparing your data for the cloud
Preparing your data for the cloud
Inphina Technologies
 
Report 2.0.docx
Report 2.0.docxReport 2.0.docx
Report 2.0.docx
pinstechwork
 
Unit II -BIG DATA ANALYTICS.docx
Unit II -BIG DATA ANALYTICS.docxUnit II -BIG DATA ANALYTICS.docx
Unit II -BIG DATA ANALYTICS.docx
vvpadhu
 
Why no sql ? Why Couchbase ?
Why no sql ? Why Couchbase ?Why no sql ? Why Couchbase ?
Why no sql ? Why Couchbase ?
Ahmed Rashwan
 
Report 1.0.docx
Report 1.0.docxReport 1.0.docx
Report 1.0.docx
pinstechwork
 
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
 
Vskills Apache Cassandra sample material
Vskills Apache Cassandra sample materialVskills Apache Cassandra sample material
Vskills Apache Cassandra sample material
Vskills
 

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
 
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
 
Vskills Apache Cassandra sample material
Vskills Apache Cassandra sample materialVskills Apache Cassandra sample material
Vskills Apache Cassandra sample material
 

Recently uploaded

Basic Industrial Engineering terms for apparel
Basic Industrial Engineering terms for apparelBasic Industrial Engineering terms for apparel
Basic Industrial Engineering terms for apparel
top1002
 
Gen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdfGen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdf
gdsczhcet
 
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
zwunae
 
Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024
Massimo Talia
 
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdfTop 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Teleport Manpower Consultant
 
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&BDesign and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Sreedhar Chowdam
 
Standard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - NeometrixStandard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - Neometrix
Neometrix_Engineering_Pvt_Ltd
 
Cosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdfCosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdf
Kamal Acharya
 
Unbalanced Three Phase Systems and circuits.pptx
Unbalanced Three Phase Systems and circuits.pptxUnbalanced Three Phase Systems and circuits.pptx
Unbalanced Three Phase Systems and circuits.pptx
ChristineTorrepenida1
 
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdfHybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
fxintegritypublishin
 
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
thanhdowork
 
Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdfWater Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation & Control
 
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
obonagu
 
Tutorial for 16S rRNA Gene Analysis with QIIME2.pdf
Tutorial for 16S rRNA Gene Analysis with QIIME2.pdfTutorial for 16S rRNA Gene Analysis with QIIME2.pdf
Tutorial for 16S rRNA Gene Analysis with QIIME2.pdf
aqil azizi
 
Forklift Classes Overview by Intella Parts
Forklift Classes Overview by Intella PartsForklift Classes Overview by Intella Parts
Forklift Classes Overview by Intella Parts
Intella Parts
 
Investor-Presentation-Q1FY2024 investor presentation document.pptx
Investor-Presentation-Q1FY2024 investor presentation document.pptxInvestor-Presentation-Q1FY2024 investor presentation document.pptx
Investor-Presentation-Q1FY2024 investor presentation document.pptx
AmarGB2
 
ML for identifying fraud using open blockchain data.pptx
ML for identifying fraud using open blockchain data.pptxML for identifying fraud using open blockchain data.pptx
ML for identifying fraud using open blockchain data.pptx
Vijay Dialani, PhD
 
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdfAKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
SamSarthak3
 
Building Electrical System Design & Installation
Building Electrical System Design & InstallationBuilding Electrical System Design & Installation
Building Electrical System Design & Installation
symbo111
 
DfMAy 2024 - key insights and contributions
DfMAy 2024 - key insights and contributionsDfMAy 2024 - key insights and contributions
DfMAy 2024 - key insights and contributions
gestioneergodomus
 

Recently uploaded (20)

Basic Industrial Engineering terms for apparel
Basic Industrial Engineering terms for apparelBasic Industrial Engineering terms for apparel
Basic Industrial Engineering terms for apparel
 
Gen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdfGen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdf
 
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
 
Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024
 
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdfTop 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
 
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&BDesign and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
 
Standard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - NeometrixStandard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - Neometrix
 
Cosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdfCosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdf
 
Unbalanced Three Phase Systems and circuits.pptx
Unbalanced Three Phase Systems and circuits.pptxUnbalanced Three Phase Systems and circuits.pptx
Unbalanced Three Phase Systems and circuits.pptx
 
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdfHybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
 
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
 
Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdfWater Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdf
 
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
 
Tutorial for 16S rRNA Gene Analysis with QIIME2.pdf
Tutorial for 16S rRNA Gene Analysis with QIIME2.pdfTutorial for 16S rRNA Gene Analysis with QIIME2.pdf
Tutorial for 16S rRNA Gene Analysis with QIIME2.pdf
 
Forklift Classes Overview by Intella Parts
Forklift Classes Overview by Intella PartsForklift Classes Overview by Intella Parts
Forklift Classes Overview by Intella Parts
 
Investor-Presentation-Q1FY2024 investor presentation document.pptx
Investor-Presentation-Q1FY2024 investor presentation document.pptxInvestor-Presentation-Q1FY2024 investor presentation document.pptx
Investor-Presentation-Q1FY2024 investor presentation document.pptx
 
ML for identifying fraud using open blockchain data.pptx
ML for identifying fraud using open blockchain data.pptxML for identifying fraud using open blockchain data.pptx
ML for identifying fraud using open blockchain data.pptx
 
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdfAKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
 
Building Electrical System Design & Installation
Building Electrical System Design & InstallationBuilding Electrical System Design & Installation
Building Electrical System Design & Installation
 
DfMAy 2024 - key insights and contributions
DfMAy 2024 - key insights and contributionsDfMAy 2024 - key insights and contributions
DfMAy 2024 - key insights and contributions
 

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