SlideShare une entreprise Scribd logo
1  sur  17
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

Contenu connexe

Tendances

Introduction to NoSQL Databases
Introduction to NoSQL DatabasesIntroduction to NoSQL Databases
Introduction to NoSQL Databases
Derek Stainer
 

Tendances (20)

NoSQL databases - An introduction
NoSQL databases - An introductionNoSQL databases - An introduction
NoSQL databases - An introduction
 
Introduction to NoSQL
Introduction to NoSQLIntroduction to NoSQL
Introduction to NoSQL
 
NoSQL databases
NoSQL databasesNoSQL databases
NoSQL databases
 
NoSQL databases
NoSQL databasesNoSQL databases
NoSQL databases
 
NOSQL Databases types and Uses
NOSQL Databases types and UsesNOSQL Databases types and Uses
NOSQL Databases types and Uses
 
Selecting best NoSQL
Selecting best NoSQL Selecting best NoSQL
Selecting best NoSQL
 
Mongodb vs mysql
Mongodb vs mysqlMongodb vs mysql
Mongodb vs mysql
 
Introduction to NoSQL Databases
Introduction to NoSQL DatabasesIntroduction to NoSQL Databases
Introduction to NoSQL Databases
 
RDBMS vs NoSQL
RDBMS vs NoSQLRDBMS vs NoSQL
RDBMS vs NoSQL
 
Sql server 2019 new features
Sql server 2019 new featuresSql server 2019 new features
Sql server 2019 new features
 
NoSql
NoSqlNoSql
NoSql
 
NoSql
NoSqlNoSql
NoSql
 
Nosql seminar
Nosql seminarNosql seminar
Nosql seminar
 
introduction to NOSQL Database
introduction to NOSQL Databaseintroduction to NOSQL Database
introduction to NOSQL Database
 
Introduction to Oracle Database
Introduction to Oracle DatabaseIntroduction to Oracle Database
Introduction to Oracle Database
 
Big data and data science overview
Big data and data science overviewBig data and data science overview
Big data and data science overview
 
Introduction to MongoDB
Introduction to MongoDBIntroduction to MongoDB
Introduction to MongoDB
 
MS-SQL SERVER ARCHITECTURE
MS-SQL SERVER ARCHITECTUREMS-SQL SERVER ARCHITECTURE
MS-SQL SERVER ARCHITECTURE
 
MongoDB
MongoDBMongoDB
MongoDB
 
NoSQL databases
NoSQL databasesNoSQL databases
NoSQL databases
 

Similaire à SQL & NoSQL

Similaire à SQL & NoSQL (20)

Sql vs NO-SQL database differences explained
Sql vs NO-SQL database differences explainedSql vs NO-SQL database differences explained
Sql vs NO-SQL database differences explained
 
DEE 431 Introduction to Mysql Slide 3
DEE 431 Introduction to Mysql Slide 3DEE 431 Introduction to Mysql Slide 3
DEE 431 Introduction to Mysql Slide 3
 
1. introduction to no sql
1. introduction to no sql1. introduction to no sql
1. introduction to no sql
 
Unit 3 MongDB
Unit 3 MongDBUnit 3 MongDB
Unit 3 MongDB
 
Vskills Apache Cassandra sample material
Vskills Apache Cassandra sample materialVskills Apache Cassandra sample material
Vskills Apache Cassandra sample material
 
Introduction to NoSQL
Introduction to NoSQLIntroduction to NoSQL
Introduction to NoSQL
 
NoSQL Basics and MongDB
NoSQL Basics and  MongDBNoSQL Basics and  MongDB
NoSQL Basics and MongDB
 
Unit II -BIG DATA ANALYTICS.docx
Unit II -BIG DATA ANALYTICS.docxUnit II -BIG DATA ANALYTICS.docx
Unit II -BIG DATA ANALYTICS.docx
 
unit2-ppt1.pptx
unit2-ppt1.pptxunit2-ppt1.pptx
unit2-ppt1.pptx
 
SQL VS NoSQL
SQL VS NoSQLSQL VS NoSQL
SQL VS NoSQL
 
No sql databases explained
No sql databases explainedNo sql databases explained
No sql databases explained
 
the rising no sql technology
the rising no sql technologythe rising no sql technology
the rising no sql technology
 
SQL or NoSQL, is this the question? - George Grammatikos
SQL or NoSQL, is this the question? - George GrammatikosSQL or NoSQL, is this the question? - George Grammatikos
SQL or NoSQL, is this the question? - George Grammatikos
 
Artigo no sql x relational
Artigo no sql x relationalArtigo no sql x relational
Artigo no sql x relational
 
What Are The Best Databases for Web Applications In 2023.pdf
What Are The Best Databases for Web Applications In 2023.pdfWhat Are The Best Databases for Web Applications In 2023.pdf
What Are The Best Databases for Web Applications In 2023.pdf
 
Polyglot Database - Linuxcon North America 2016
Polyglot Database - Linuxcon North America 2016Polyglot Database - Linuxcon North America 2016
Polyglot Database - Linuxcon North America 2016
 
NoSql Databases
NoSql DatabasesNoSql Databases
NoSql Databases
 
Brief introduction to NoSQL by fas mosleh
Brief introduction to NoSQL by fas moslehBrief introduction to NoSQL by fas mosleh
Brief introduction to NoSQL by fas mosleh
 
NoSQL
NoSQLNoSQL
NoSQL
 
Unit-10.pptx
Unit-10.pptxUnit-10.pptx
Unit-10.pptx
 

Dernier

EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
Earley Information Science
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
vu2urc
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
Enterprise Knowledge
 

Dernier (20)

Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 

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