reading-notes

nosql vs sql

Fill in the chart below with five differences between SQL and NoSQL databases:

SQL NoSQL
SQL databases are primarily called as Relational Databases NoSQL database are primarily called as non-relational
SQL databases are table based databases whereas NoSQL databases are document based
SQL databases represent data in form of tables which consists of n number of rows of data whereas NoSQL databases are the collection of key-value pair, documents
SQL databases have predefined schema whereas NoSQL databases have dynamic schema for unstructured data.
SQL databases are vertically scalable whereas NoSQL databases are horizontally scalable

What kind of data is a good fit for an SQL database?

Give a real world example.

MySQL Community Edition

What kind of data is a good fit a NoSQL database?

Give a real world example.

NoSQL databases do a better job at representing real world objects

Which type of database is best for hierarchical data storage?

NoSQL database fits better for the hierarchical data storage as it follows the key-value pair way of storing data similar to JSON data

Which type of database is best for scalability?

In most typical situations, SQL databases are vertically scalable.

NoSQL databases are horizontally scalable.

sql vs nosql (Video)

What does SQL stand for?

Structured Query Language

What is a realational database?

database that works with creation assumptions

What type of structure does a relational database work with?

Structured Query Language like table , products table

What is a ‘schema’?

so-called fields

What is a NoSQL database?

is a type of database that stores and retrieves data without needing to define its structure first

Howo does it work?

accommodate a wide variety of data models, including key-value, document

What is inside of a Mongo database?

document is a representation of a single entity of data in the MongoDB database

Which is more flexible - SQL or MongoDB? and why.

MongoDB because it does not have to worry about transactions or rollbacks

What is the disadvantage of a NoSQL database?