Code Fellows Notes
SQL databases: On a high-level, NoSQL don’t have standard interfaces to perform complex queries, and the queries themselves in NoSQL are not as powerful as SQL query language.
NoSQL database fits better for the hierarchical data storage as it follows the key-value pair way of storing data similar to JSON data. NoSQL database are highly preferred for large data set (i.e for big data).
In most typical situations, SQL databases are vertically scalable. You can manage increasing load by increasing the CPU, RAM, SSD, etc, on a single server. On the other hand, NoSQL databases are horizontally scalable. You can just add few more servers easily in your NoSQL database infrastructure to handle the large traffic.
When an entry in one table can be related to more than one entry in another.
Create a diagram
The Primary Keys. Remember the primary keys uniquely identify each row in a table. A table typically has one primary key, but can have more. When the key has more than one column, it is called a compound key.
Foreign Key – This is a column or set of columns which match a primary key in another table.
Keywords hold significance in SQL and are used for certain functions and as such need special treatment to be used as identifiers (e.g. table and column names)
Parameters are used to exchange data between stored procedures/functions and the application/tool that called the stored procedure or function
The process to eliminate data redundancy and enhance data integrity in the table. Helps to organize the data in the database.
One-to-one relationships associate one record in one table with a single record in the other table. One-to-many relationships associate one record in one table with many records in the other table. Many-to-many: Multiple records in one table are related to multiple records in another table.