There are a lot of databases used today in the industry. Some are SQL databases, some are NoSQL databases. The conventional database is SQL database system that uses tabular relational model to represent data and their relationship. The NoSQL database is the newer one database that provides a mechanism for storage and retrieval of data other than tabular relations model used in relational databases.
|| Databases are categorized as Relational Database Management System (RDBMS).
||NoSQL databases are categorized as Non-relational or distributed database system.
||SQL databases have fixed or static or predefined schema.
||NoSQL databases have dynamic schema.
||SQL databases display data in form of tables so it is known as table-based database.
||NoSQL databases display data as collection of key-value pair, documents, graph databases or wide-column stores.
||SQL databases are vertically scalable.
||NoSQL databases are horizontally scalable.
||SQL databases use a powerful language "Structured Query Language" to define and manipulate the data.
||In NoSQL databases, collection of documents are used to query the data. It is also called unstructured query language. It varies from database to database.
||SQL databases are best suited for complex queries.
||NoSQL databases are not so good for complex queries because these are not as powerful as SQL queries.
||SQL databases are not best suited for hierarchical data storage.
||NoSQL databases are best suited for hierarchical data storage.
||MySQL, Oracle, Sqlite, PostgreSQL and MS-SQL etc. are the example of SQL database.
||MongoDB, BigTable, Redis, RavenDB, Cassandra, Hbase, Neo4j, CouchDB etc. are the example of nosql database