Converting your SQL database structure to a non-schema / JSON database like Firebase
I, :) welcome to the second part for my posts on Firebase database for SQL developers
Firebase database for SQL developers - Part 1
In this post am going to take a relational model that we can see in a SQL database and then convert that to a No-SQL database like the Firebase database
the image above shows an events table, speakers table and event_speakers table. event_speakers is the table that relates events table to speakers tables together with something called FOREIGN KEY
To retrieve data from the SQL database image above the query will go as follow
So to what we have been waiting for translating the relationship in a Firebase database type
With the Event structure in mind we will want to create a JSON like database for the relationship like this