Reading notes about code for my future reference.
SQL database are the a good fit for complex query intensive enviroment.
NoSQL Databases are much more well suited, for heirarchical data storage. This is due to the NoSQL database having a key value pair method and graph method.
Think of SQLs like a table (like a physical table), while a Non SQL, can be expanded by adding more tables (physically) to put items on.
We relate to them using the following.
-Table -Field -Primary Key -Compound Key -Foreign Key -One to Many Relationship -One to One Relationship
Make a diagram and workflows of the databases to ensure you know what you want to build.
A primary key is used to ensure data in the specific column is unique. A foreign key is a column or group of columns in a relational database table that provides a link between data in two tables.
In SQL an keyword can hold single data value of a specific type, while a parameter is an object that can exchange data between functions.
This is the procedure of organizing data in a database and includes creating tables and establishing relationships between tables.
One to one: Think of it as an red crayon and a box, you have a red crayon and it goes to one specific box full of red crayons.
One to many: Think of it as the crayon has to be stored in a specific kind of box, but we also want to make sure the crayons are part of that specified amount.
Many to many: This means that the red crayon can go into many other types of boxes like a 12 color - 64 color, but it also means all the boxes can also distribute this red crayon.
I want to be able to adequately complete my SQL work as if it were that learning prep work.