Databases
Databases
• SQL vs NoSQL
• CRUD Operations.
• MongoDB.
• Robomongo.
Table of Contents
• What is Database?
• Use of Databases.
• SQL vs NoSQL
• Basic SQL Queries.
• CRUD Operations.
• MongoDB.
• Robomongo.
Table of Contents
• Node MongoDB Native.
• ObjectID.
• Object Restructuring and De-structuring.
• Cursor in MongoDB.
• MongoDB - Client.
• Mongoose ORM.
What is Database?
•.A database is an organized collection of data.
• It generally stores and access electronically from a computer system.
• It is usually controlled by Database Management System (DBMS).
• In database, the data can be easily accessed, managed, modified,
controlled, updated and organized with ease.
• Most databases use Structured Query Language (SQL) for writing and
querying the collective data(s).
• Database can be modeled in rows and columns in a series of tables.
• It process the data and query it efficiently.
What is Database?
•. In database, different collective information (or data) can be stored.
Hh
Use of Databases.
.
SQL vs NoSQL
The five critical differences of SQL vs NoSQL:
.
1. SQL databases are relational, NoSQL are non-relational.
2. SQL databases use structured query language and have a predefined schema. NoSQL databases have dynamic
schemas for unstructured data.
3. SQL databases are vertically scalable, NoSQL databases are horizontally scalable.
4. SQL databases are table based, while NoSQL databases are document, key-value, graph or wide-column stores.
5. SQL databases are better for multi-row transactions, NoSQL are better for unstructured data like documents or
JSON.
Basic SQL Queries
.
Some of the basic SQL Queries are listed below –