Stuck on SQL Part 3 Question 2: Bobbies Hobbies JOINs
Step 1 was straight forward to add a new person and add a new hobby to the database.
Step 2 asks me to "select the 2 tables with a join so that you can see each person's name next to their hobby."
I tried this code and several others, as well as looking into this thread elsewhere.
SELECT persons.name, hobbies.name
FROM persons
JOIN hobbies
ON persons.id = hobbies.person_id;
This code works but doesn't pull in my new entries and I don't understand why. I am guessing this is why I can't progress to the next step, or maybe I am missing a step?
Please and thank you!
Log ind for at efterlade en kommentar.