SQL vs NoSQL

Umesh Dananjaya
3 min readJun 1, 2021

In this blog I’m going to explain about SQL and NoSQL, also this post would give you a brief idea about What is SQL ,What is NoSql?, Advantages and Disadvantages of SQL and NoSQL, Finally we talk about differences of SQL and NoSQL.

What is the SQL?

SQL stands for Structured Query Language and we can perform various operations with SQL databases such as insert, update, delete and etc. SQL became a standard of the American National Standards Institute (ANSI) in 1986, and of the International Organization for Standardization (ISO) in 1987

Why we need SQL?

SQL is most widely use tool in the business intelligence SQL should used to data manipulation and the data testing. Some tools such as spark and Impala related with data science are highly depended on the SQL.

Advantages

Query resolving is easy and fast — Can execute lots of queries efficiently and effectively.

Expert coding knowledge is not required — SQL is a very user friendly language ,which has syntax and keywords which are easier to understand.

Universal Language — Due to the availability of excess resources and usage from past it has become a world standard language.

Portable — It can be used in software’s in PCs, servers, laptops independent of any platform). Also, it can be embedded with other applications as per need/requirement/use.

Interactive Language — Can easily understand and learn from scratch.

Multiple data views

Disadvantages

Complex Interface of databases — SQL databases and working tools have complex interfaces that makes few makes beginners difficult to grab the concept easily.

Cost — Specially SQL databases are not easy to manage and maintain, therefore maintaining them are very expensive.

What is the NoSQL?

NoSQL databases are database’s which could be managed without the knowledge of SQL, specially also known as non-relational databases. Instead of table data are stored in collections

why we need NoSQL?

Data is easier to be maintained daily and manage.NoSQL databases are often better suited to storing and modeling structured, semi-structured,and unstructured data in one database.

Advantages

  • It’s easy to learn, and specially the test data could be dropped on the database, without any hesitation.
  • Modular architecture allows all the modules to get shared and exchanged.
  • The database expand linearly as more documents or nodes get accumulated.
  • Specially the cost is comparatively lower than SQL databases ,because of concepts like sharding .
  • Quality search results are produced with integrated search process and system.
  • An object-relational mapping layer is unnecessary.
  • Very easy to store data in a high scale and variability

Disadvantages

  • ACID transactions are done only inside the documents ,however the transactions outside the document must be done in the application level.
  • Document stores don’t provide fine-grained security at the element level.
  • NoSQL systems are new to many staff members and additional training may be required.
  • Each type of NoSQL database has it’s own query language which is unique.
  • The document store won’t work with existing reporting and OLAP tools.

Difference between SQL and NoSQL

--

--