Sitemap

Relational Database (SQL).

2 min readApr 24, 2023

Press enter or click to view image in full size
Chocolate.

Lets start with a story so that everyone can understand it, let say you are a owner of a chocolate manufacturing company, you sell four different kinds of chocolate (Imagine your favorite chocolates ) since its a manufacturing company and you can’t eat or store all the chocolate for yourself, you need to sell it to the consumers be it retail or the end consumer, if you are selling a minimal amount of chocolate like 10 or 100 you can remember the name what if you are selling 10s and 1000s of chocolate of different flavour to different consumers, you can’t remember it, nor you can keep a count that's where Relational Database comes in, it keeps the count of all the sales of the chocolate.

Get Rakesh M’s stories in your inbox

Join Medium for free to get updates from this writer.

Now lets dig little deep into this RDBMS(Relational Database management system) concepts, for the above example we can have three tables, one for different chocolates, 2nd table for orders, 3rd table for sales.

Press enter or click to view image in full size
Sales Table.

Let say you had a good profit and you decide to add few more chocolates to the manufacturing plant, then the Chocolates table will get updated, same goes for sales if the sales increase and orders if new orders are placed.

Press enter or click to view image in full size
Updated sales table.

Last point i guess you will be wondering why it is called as RDBMS because each table is related to one or the other.