Difference Between SQL and NoSQL
Difference Between SQL and NoSQL
COM
SQL Databases :
SQL stands for "Structured Query Language";in the name itself you will get idea that SQL
database contains Structured data.SQL is traditional language used to manage data in
different database management systems like Oracle,Mysql,MSSQL e.t.c.SQL Databases are
also known as Relational Database Management System(RDBMS) in which tables are
connected with each other with specific relation you can say it with constraints and joins.SQL
Databases are integral part of any project because data which is relational data needs to be
used in every project.
1.MS SQL :
MS SQL is also known as Microsoft SQL which is well known SQL database which is used
by so many mid and large scale applications.Microsoft SQL is very widely used database
management system throughout the world to create not only stand-alone software but also
distributed web applications.
1.High Speed
5.Easy Tuning
There are other SQL databases also.If you want to check the information about different SQL
databases Click on Database names below:
NoSQL Databases :
NoSQL is unstructured database which is referring as "Non Relational" or "Non SQL"
database.It means the database.The storage and retrieval of a data in NoSQL is modeled not
in tabular format.NoSQL does not involve a structured Query Language or SQL.NoSQL
Databases are used in many large scale distributed databases.The websites like
google,twitter,facebook uses big data technology rather than using the traditional technology.
NoSQL database is nothing but Non Relational and Non SQL database
2.High Performance
These are some aadvatages of NoSQL database.Lets discuss one example of NoSQL
database.
Example:
MongoDB :
MongoDB is one of the popular NoSQL Databases.It stores data in JSON documents. It is
non-relational database which has dynamic schema.
1.Speed:
MongoDB is good database for performance tuning as it eliminates lot of complex queries
and complex join structure.
2.Scalable :
It is horizontally scalable i.e. you can reduce the workload by increasing the number of
servers in your resource pool instead of relying on a stand alone resource.
3.Manageable:
It is easy to use for both developers and administrators. This also gives the ability to shard
database.
4.Dynamic Schema:
Its gives you the flexibility to evolve your data schema without modifying the existing data.
(Author-Abhisek Bose)
SQL DB NoSQL DB
Examples: DB2, MySQL, Oracle, Postgress, SQL Examples: CouchDb MongoDB, RavenDb,
server Redis, Cassandra, Hbase, Neo4j,BigTable
These are called RDBMS. These are called not only SQL database.
Based on ACID properties i.e. Atomicity, Based on CAP properties i.e. ( Consistency,
Consistency, Isolation and Durability Availability and Partition tolerance )
These are table based database i.e. the data These databases are document based, key-value
pairs or graph based etc.
are stored in a table with rows and columns.
These are standard schema based (predefined These are not standard schema based( dynamic
schema) schema)
These are scaled vertically. Load can be managed These are scaled horizontally. A few servers can
by increasing CPU, RAM etc in the same server. be added to manage large traffic.
Not preferred for large/big data sets. Preferred for large/big data sets.
Preferred for complex query execution Not preferred for complex query execution
Hope you like this article of Difference between SQL and Nosql.If you like this article don't
forget to share it.