SQL Vs NoSQL 1
SQL Vs NoSQL 1
NoSQL
What is
Database???
DDL DCL
DML TCL
CREATE ALTER GRAN BEGIN
INSERT DROP REVOKE TRAN
UPDATE COMMIT
FACTORS
ADVANTAGES
Replication
It reduces the work load and heavily increasing the
scalability and availability of business application.
Maturity
This database has been around for a long time and
tremendous community input and testing has gone
into this database making it very stable.
ADVANTAGES
NoSQL SPEED
Example For simple queries, it gives good performance, as all the
related data are in single document which eliminates the
join operations.
SCALABILITY
We can reduce the workload by increasing the number of servers
in our resource pool.
Free presentation PowerPoint - SLIDESELLER.COM
Comparison between SQL and NoSQL
1. TYPE
SQL databases are primarily called as
Relational Database (RDBMS); whereas
NoSQL database are primarily called as non-
relational or distributed database.
SQL NoSQL
2. The Structure
SQL databases are table- based on the other
hand NoSQL databases are either key value
pairs, document – based, graph databases or
wide- column stores.
Property
followed by SQL
and NoSQL
o SQL follow ACID properties which means atomicity,
consistency, Isolation and Durability.
ISBN: 97809912435,
Title: “ JavaScript”,
Format : “eBook”,
Price: 29.00
}
Quick comparison of
SQL and NoSQL
.
.
SQL NoSQL
To insert a new book record
db. book. Insert({
INSERT into book(‘ISBN’, ’title’, ‘author’)
ISBN: “9780990345”,
VALUES(‘ 9780990345’, ‘ Full Stack
title: “Full Stack JavaScript”,
JavaScript’, ‘ Colin Ihrig’);
author:” Colin Ihring”})
Update a book record
UPDATE book db. Book. update({
SET price = 19.99 ISBN: ‘9780990345’},
WHERE ISBN= ‘9780990345’ { $ set : { price:19.99}
});
Delete all site point books
DELETE FROM book WHERE db. book. Remove({
publisher_id= ‘SP001’; “Publisher. name”: “site point”});
QUICK
REVISION