Working in the Relation Database
So I am lost with the foreign relationship? When I try to establish the foreign key I get an error that something is not present. I get that it has something to do with the number of rows of one table compared to the other but I don’t know what I am supposed to do to fix it? For this instance:
Each “planet” should have a foreign key that references one of the rows in star. Here is my planets table.
I can’t embed anymore images but my Star table also has a “Sol” in star_id 1.
I just need some guidance please. I’m lost as to what I am doing wrong.