SlideShare a Scribd company logo
2
Most read
17
Most read
SQL & NoSQL
Ahmad Awsaf-uz-zaman
Apr 21, 2016
www.a2z-soft.com
What Is SQL?
 SQL is used to communicate with a database
 SQL is used to access and manipulate
databases
 SQL stands for Structured Query Language
www.a2z-soft.com
2
What Can SQL do?
 SQL can execute queries against a database
 SQL can retrieve data from a database
 SQL can insert records in a database
 SQL can update records in a database
 SQL can delete records from a database
 SQL can create new databases
 SQL can create new tables in a database
 SQL can create stored procedures in a database
 SQL can create views in a database
 SQL can set permissions on tables, procedures, and
views
www.a2z-soft.com
3
SQL Used
 An RDBMS database program (i.e. MS Access, SQL
Server, MySQL)
 To use a server-side scripting language, like PHP or ASP
 To use SQL to get the data we want
 To use HTML / CSS
www.a2z-soft.com
4
RDBMS
 RDBMS stands for Relational Database Management
System.
 RDBMS is the basis for SQL, and for all modern database
systems such as MS SQL Server, IBM DB2, Oracle, MySQL,
and Microsoft Access.
 The data in RDBMS is stored in database objects called
tables.
 A table is a collection of related data entries and it
consists of columns and rows.
www.a2z-soft.com
5
Why Is SQL Important?
 It is mature and well understood
 It can handle relational data models
 It can handle hierarchical data models
 It can handle unstructured data models
 It can handle complex/nested transactions
 It is an ISO / IEC standard
 It can be used centralized applications (e.g. ERP)
www.a2z-soft.com
6
SQL Database (Popular)
 SQL Server
 Oracle
 MySQL
 SQLite
 PostgreSQL
www.a2z-soft.com
7
What Is NoSQL?
 Originally referring to "Non SQL" or "Not Only SQL"
or "Non Relational"
 NoSQL databases are sometimes referred to as
cloud databases, non-relational databases, Big
Data databases
 A NoSQL database environment is, simply put, a
non-relational and largely distributed database
system that enables rapid, ad-hoc organization
and analysis of extremely high-volume, disparate
data types.
www.a2z-soft.com
8
Types of NoSQL Databases
 Graph database
 Key-Value store
 Column store
 Document database
www.a2z-soft.com
9
Why NoSQL?
 The Growth of Big Data
 Continuous Data Availability
 Real Location Independence
 Modern Transactional Capabilities
 Flexible Data Models
 Better Architecture
 Analytics and Business Intelligence
www.a2z-soft.com
10
Evaluating NoSQL databases
Data model Performance Scalability Flexibility Complexity Functionality
Key-value
store
High High High None
Variable
(None)
Column
Store
High High Moderate Low Minimal
Document
Store
High
Variable
(High)
High Low
Variable
(Low)
Graph
Database
Variable Variable High High
Graph
Theory
www.a2z-soft.com
11
NoSQL Database (Popular)
 MongoDB
 Redis
 Cassandra
 CouchDB
 HBase
www.a2z-soft.com
12
Difference between SQL and
NoSQL
SQL NoSQL
Store related data in tables Store related data in JSON-like, name-value documents
Require a schema which defines tables prior to use Can store data without specifying a schema
Encourage normalization to reduce data redundancy
Must usually be denormalized so information about an
item is contained in a single document
Support table joins to retrieve related data from
multiple tables in a single command
Should not require joins (presuming denormalized
documents are used)
Implement data integrity rules
Permit any data to be saved anywhere at any time
without verification
www.a2z-soft.com
13
Difference between SQL and
NoSQL
SQL NoSQL
Provide transactions to guarantee two or more
updates succeed or fail as an atomic unit
Guarantee updates to a single document — but not
multiple documents
Can be scaled (with some effort) Provide excellent performance and scalability
Use a powerful declarative language for querying Use JSON data objects for querying
Offer plenty of support, expertise and tools. It is a newer, exciting technology.
MySQL, Postgres, Microsoft SQL Server, Oracle
Database
MongoDB, Cassandra, HBase, Neo4j
www.a2z-soft.com
14
Difference between SQL and
NoSQL
SQL NoSQL
One type with minor variations
Many different types including key-value stores,
document databases, wide-column stores, and
graph databases
Mix of open-source (e.g., Postgres, MySQL) and
closed source (e.g., Oracle Database)
Open-source
Specific language using Select, Insert, and Update
statements, e.g. SELECT fields FROM table
WHERE etc.
Through object-oriented APIs
Can be configured for strong consistency
Depends on product.
Some provide strong consistency (e.g., MongoDB,
with tunable consistency for reads) whereas others
offer eventual consistency (e.g., Cassandra).
www.a2z-soft.com
15
Why Is NoSQL Important?
 Large volumes of rapidly changing structured,
semi-structured, and unstructured data
 Agile sprints, quick schema iteration, and
frequent code pushes
 Object-oriented programming that is easy to use
and flexible
 Geographically distributed scale-out architecture
instead of expensive, monolithic architecture
www.a2z-soft.com
16
Conclusion
All the choice provided by the rise of NoSQL
databases does not mean the demise of
RDBMS databases. We are entering an era of
polyglot persistence, a technique that uses
different data storage technologies to
handle varying data storage needs. Polyglot
persistence can apply across an enterprise or
within a single application.
www.a2z-soft.com
17

More Related Content

What's hot (20)

PDF
How to Choose the Right Database for Your Workloads
InfluxData
 
PPTX
Mongo db intro.pptx
JWORKS powered by Ordina
 
PPTX
Relational databases vs Non-relational databases
James Serra
 
ODP
Introduction to MongoDB
Dineesha Suraweera
 
PPT
Introduction to MongoDB
Ravi Teja
 
PPTX
Basics of MongoDB
HabileLabs
 
PPTX
The Basics of MongoDB
valuebound
 
PPTX
Oracle DBA
shivankuniversity
 
PPTX
Mongodb basics and architecture
Bishal Khanal
 
PPTX
Introduction to NoSQL
Dr-Dipali Meher
 
PPTX
NOSQL Databases types and Uses
Suvradeep Rudra
 
PPTX
Web api
Sudhakar Sharma
 
PPTX
Sql vs NoSQL
RTigger
 
PPTX
MongoDB
nikhil2807
 
PDF
Oracle RAC - New Generation
Anil Nair
 
PDF
MS-SQL SERVER ARCHITECTURE
Douglas Bernardini
 
PDF
NoSQL databases
Marin Dimitrov
 
PPTX
An Enterprise Architect's View of MongoDB
MongoDB
 
PPTX
Azure Data Fundamentals DP 900 Full Course
Piyush sachdeva
 
How to Choose the Right Database for Your Workloads
InfluxData
 
Mongo db intro.pptx
JWORKS powered by Ordina
 
Relational databases vs Non-relational databases
James Serra
 
Introduction to MongoDB
Dineesha Suraweera
 
Introduction to MongoDB
Ravi Teja
 
Basics of MongoDB
HabileLabs
 
The Basics of MongoDB
valuebound
 
Oracle DBA
shivankuniversity
 
Mongodb basics and architecture
Bishal Khanal
 
Introduction to NoSQL
Dr-Dipali Meher
 
NOSQL Databases types and Uses
Suvradeep Rudra
 
Sql vs NoSQL
RTigger
 
MongoDB
nikhil2807
 
Oracle RAC - New Generation
Anil Nair
 
MS-SQL SERVER ARCHITECTURE
Douglas Bernardini
 
NoSQL databases
Marin Dimitrov
 
An Enterprise Architect's View of MongoDB
MongoDB
 
Azure Data Fundamentals DP 900 Full Course
Piyush sachdeva
 

Similar to SQL & NoSQL (20)

PDF
B.Vinithamani,II-M.sc.,Computer science,Bon Secours college for women,thanjavur.
vinithamaniB
 
PPTX
WEB_DATABASE_chapter_4.pptx
Koteswari Kasireddy
 
PPTX
NoSQL vs SQL (by Dmitriy Beseda, JS developer and coach Binary Studio Academy)
Binary Studio
 
PDF
Brief introduction to NoSQL by fas mosleh
Fas (Feisal) Mosleh
 
PPTX
No sqlpresentation
Salma Gouia
 
PDF
NOSQL- Presentation on NoSQL
Ramakant Soni
 
PDF
NOSQL in big data is the not only structure langua.pdf
ajajkhan16
 
PPTX
Sql vs no sql
Bhuwan Paneru
 
PPTX
No SQL- The Future Of Data Storage
Bethmi Gunasekara
 
PPT
NoSQL Seminer
Partha Das
 
PDF
SQL OR NoSQL DATABASES? CRITICAL DIFFERENCES.pdf
ssusere444941
 
PDF
No sql – rise of the clusters
responseteam
 
PPTX
UNIT-2.pptx
SIVAKUMARM603675
 
PDF
No sql bigdata and postgresql
Zaid Shabbir
 
PPTX
NoSQL powerpoint presentation difference with rdbms
AtulKabbur
 
PPTX
DATABASE MANAGEMENT SYSTEM-MRS. LAXMI B PANDYA FOR 25TH AUGUST,2022.pptx
Laxmi Pandya
 
PPTX
Nosql-Module 1 PPT.pptx
Radhika R
 
PDF
DDJ_102113
Deirdre Blake
 
PPTX
Relational and non relational database 7
abdulrahmanhelan
 
DOCX
Unit II -BIG DATA ANALYTICS.docx
vvpadhu
 
B.Vinithamani,II-M.sc.,Computer science,Bon Secours college for women,thanjavur.
vinithamaniB
 
WEB_DATABASE_chapter_4.pptx
Koteswari Kasireddy
 
NoSQL vs SQL (by Dmitriy Beseda, JS developer and coach Binary Studio Academy)
Binary Studio
 
Brief introduction to NoSQL by fas mosleh
Fas (Feisal) Mosleh
 
No sqlpresentation
Salma Gouia
 
NOSQL- Presentation on NoSQL
Ramakant Soni
 
NOSQL in big data is the not only structure langua.pdf
ajajkhan16
 
Sql vs no sql
Bhuwan Paneru
 
No SQL- The Future Of Data Storage
Bethmi Gunasekara
 
NoSQL Seminer
Partha Das
 
SQL OR NoSQL DATABASES? CRITICAL DIFFERENCES.pdf
ssusere444941
 
No sql – rise of the clusters
responseteam
 
UNIT-2.pptx
SIVAKUMARM603675
 
No sql bigdata and postgresql
Zaid Shabbir
 
NoSQL powerpoint presentation difference with rdbms
AtulKabbur
 
DATABASE MANAGEMENT SYSTEM-MRS. LAXMI B PANDYA FOR 25TH AUGUST,2022.pptx
Laxmi Pandya
 
Nosql-Module 1 PPT.pptx
Radhika R
 
DDJ_102113
Deirdre Blake
 
Relational and non relational database 7
abdulrahmanhelan
 
Unit II -BIG DATA ANALYTICS.docx
vvpadhu
 
Ad

Recently uploaded (20)

PDF
“Squinting Vision Pipelines: Detecting and Correcting Errors in Vision Models...
Edge AI and Vision Alliance
 
PDF
SIZING YOUR AIR CONDITIONER---A PRACTICAL GUIDE.pdf
Muhammad Rizwan Akram
 
PDF
NASA A Researcher’s Guide to International Space Station : Physical Sciences ...
Dr. PANKAJ DHUSSA
 
PDF
Agentic AI lifecycle for Enterprise Hyper-Automation
Debmalya Biswas
 
PDF
Newgen 2022-Forrester Newgen TEI_13 05 2022-The-Total-Economic-Impact-Newgen-...
darshakparmar
 
PDF
UPDF - AI PDF Editor & Converter Key Features
DealFuel
 
PDF
Peak of Data & AI Encore AI-Enhanced Workflows for the Real World
Safe Software
 
PPT
Ericsson LTE presentation SEMINAR 2010.ppt
npat3
 
PDF
“NPU IP Hardware Shaped Through Software and Use-case Analysis,” a Presentati...
Edge AI and Vision Alliance
 
PDF
Reverse Engineering of Security Products: Developing an Advanced Microsoft De...
nwbxhhcyjv
 
PDF
The 2025 InfraRed Report - Redpoint Ventures
Razin Mustafiz
 
PPTX
From Sci-Fi to Reality: Exploring AI Evolution
Svetlana Meissner
 
PPTX
Agentforce World Tour Toronto '25 - MCP with MuleSoft
Alexandra N. Martinez
 
PDF
AI Agents in the Cloud: The Rise of Agentic Cloud Architecture
Lilly Gracia
 
DOCX
Python coding for beginners !! Start now!#
Rajni Bhardwaj Grover
 
PDF
How do you fast track Agentic automation use cases discovery?
DianaGray10
 
PDF
The Rise of AI and IoT in Mobile App Tech.pdf
IMG Global Infotech
 
PPTX
The Project Compass - GDG on Campus MSIT
dscmsitkol
 
PPTX
Designing_the_Future_AI_Driven_Product_Experiences_Across_Devices.pptx
presentifyai
 
PDF
“Computer Vision at Sea: Automated Fish Tracking for Sustainable Fishing,” a ...
Edge AI and Vision Alliance
 
“Squinting Vision Pipelines: Detecting and Correcting Errors in Vision Models...
Edge AI and Vision Alliance
 
SIZING YOUR AIR CONDITIONER---A PRACTICAL GUIDE.pdf
Muhammad Rizwan Akram
 
NASA A Researcher’s Guide to International Space Station : Physical Sciences ...
Dr. PANKAJ DHUSSA
 
Agentic AI lifecycle for Enterprise Hyper-Automation
Debmalya Biswas
 
Newgen 2022-Forrester Newgen TEI_13 05 2022-The-Total-Economic-Impact-Newgen-...
darshakparmar
 
UPDF - AI PDF Editor & Converter Key Features
DealFuel
 
Peak of Data & AI Encore AI-Enhanced Workflows for the Real World
Safe Software
 
Ericsson LTE presentation SEMINAR 2010.ppt
npat3
 
“NPU IP Hardware Shaped Through Software and Use-case Analysis,” a Presentati...
Edge AI and Vision Alliance
 
Reverse Engineering of Security Products: Developing an Advanced Microsoft De...
nwbxhhcyjv
 
The 2025 InfraRed Report - Redpoint Ventures
Razin Mustafiz
 
From Sci-Fi to Reality: Exploring AI Evolution
Svetlana Meissner
 
Agentforce World Tour Toronto '25 - MCP with MuleSoft
Alexandra N. Martinez
 
AI Agents in the Cloud: The Rise of Agentic Cloud Architecture
Lilly Gracia
 
Python coding for beginners !! Start now!#
Rajni Bhardwaj Grover
 
How do you fast track Agentic automation use cases discovery?
DianaGray10
 
The Rise of AI and IoT in Mobile App Tech.pdf
IMG Global Infotech
 
The Project Compass - GDG on Campus MSIT
dscmsitkol
 
Designing_the_Future_AI_Driven_Product_Experiences_Across_Devices.pptx
presentifyai
 
“Computer Vision at Sea: Automated Fish Tracking for Sustainable Fishing,” a ...
Edge AI and Vision Alliance
 
Ad

SQL & NoSQL

  • 1. SQL & NoSQL Ahmad Awsaf-uz-zaman Apr 21, 2016 www.a2z-soft.com
  • 2. What Is SQL?  SQL is used to communicate with a database  SQL is used to access and manipulate databases  SQL stands for Structured Query Language www.a2z-soft.com 2
  • 3. What Can SQL do?  SQL can execute queries against a database  SQL can retrieve data from a database  SQL can insert records in a database  SQL can update records in a database  SQL can delete records from a database  SQL can create new databases  SQL can create new tables in a database  SQL can create stored procedures in a database  SQL can create views in a database  SQL can set permissions on tables, procedures, and views www.a2z-soft.com 3
  • 4. SQL Used  An RDBMS database program (i.e. MS Access, SQL Server, MySQL)  To use a server-side scripting language, like PHP or ASP  To use SQL to get the data we want  To use HTML / CSS www.a2z-soft.com 4
  • 5. RDBMS  RDBMS stands for Relational Database Management System.  RDBMS is the basis for SQL, and for all modern database systems such as MS SQL Server, IBM DB2, Oracle, MySQL, and Microsoft Access.  The data in RDBMS is stored in database objects called tables.  A table is a collection of related data entries and it consists of columns and rows. www.a2z-soft.com 5
  • 6. Why Is SQL Important?  It is mature and well understood  It can handle relational data models  It can handle hierarchical data models  It can handle unstructured data models  It can handle complex/nested transactions  It is an ISO / IEC standard  It can be used centralized applications (e.g. ERP) www.a2z-soft.com 6
  • 7. SQL Database (Popular)  SQL Server  Oracle  MySQL  SQLite  PostgreSQL www.a2z-soft.com 7
  • 8. What Is NoSQL?  Originally referring to "Non SQL" or "Not Only SQL" or "Non Relational"  NoSQL databases are sometimes referred to as cloud databases, non-relational databases, Big Data databases  A NoSQL database environment is, simply put, a non-relational and largely distributed database system that enables rapid, ad-hoc organization and analysis of extremely high-volume, disparate data types. www.a2z-soft.com 8
  • 9. Types of NoSQL Databases  Graph database  Key-Value store  Column store  Document database www.a2z-soft.com 9
  • 10. Why NoSQL?  The Growth of Big Data  Continuous Data Availability  Real Location Independence  Modern Transactional Capabilities  Flexible Data Models  Better Architecture  Analytics and Business Intelligence www.a2z-soft.com 10
  • 11. Evaluating NoSQL databases Data model Performance Scalability Flexibility Complexity Functionality Key-value store High High High None Variable (None) Column Store High High Moderate Low Minimal Document Store High Variable (High) High Low Variable (Low) Graph Database Variable Variable High High Graph Theory www.a2z-soft.com 11
  • 12. NoSQL Database (Popular)  MongoDB  Redis  Cassandra  CouchDB  HBase www.a2z-soft.com 12
  • 13. Difference between SQL and NoSQL SQL NoSQL Store related data in tables Store related data in JSON-like, name-value documents Require a schema which defines tables prior to use Can store data without specifying a schema Encourage normalization to reduce data redundancy Must usually be denormalized so information about an item is contained in a single document Support table joins to retrieve related data from multiple tables in a single command Should not require joins (presuming denormalized documents are used) Implement data integrity rules Permit any data to be saved anywhere at any time without verification www.a2z-soft.com 13
  • 14. Difference between SQL and NoSQL SQL NoSQL Provide transactions to guarantee two or more updates succeed or fail as an atomic unit Guarantee updates to a single document — but not multiple documents Can be scaled (with some effort) Provide excellent performance and scalability Use a powerful declarative language for querying Use JSON data objects for querying Offer plenty of support, expertise and tools. It is a newer, exciting technology. MySQL, Postgres, Microsoft SQL Server, Oracle Database MongoDB, Cassandra, HBase, Neo4j www.a2z-soft.com 14
  • 15. Difference between SQL and NoSQL SQL NoSQL One type with minor variations Many different types including key-value stores, document databases, wide-column stores, and graph databases Mix of open-source (e.g., Postgres, MySQL) and closed source (e.g., Oracle Database) Open-source Specific language using Select, Insert, and Update statements, e.g. SELECT fields FROM table WHERE etc. Through object-oriented APIs Can be configured for strong consistency Depends on product. Some provide strong consistency (e.g., MongoDB, with tunable consistency for reads) whereas others offer eventual consistency (e.g., Cassandra). www.a2z-soft.com 15
  • 16. Why Is NoSQL Important?  Large volumes of rapidly changing structured, semi-structured, and unstructured data  Agile sprints, quick schema iteration, and frequent code pushes  Object-oriented programming that is easy to use and flexible  Geographically distributed scale-out architecture instead of expensive, monolithic architecture www.a2z-soft.com 16
  • 17. Conclusion All the choice provided by the rise of NoSQL databases does not mean the demise of RDBMS databases. We are entering an era of polyglot persistence, a technique that uses different data storage technologies to handle varying data storage needs. Polyglot persistence can apply across an enterprise or within a single application. www.a2z-soft.com 17