r/SQL • • Apr 16 '26

MySQL Junction tables for data from a Competition TV Show

I'm trying to develop my skills in working with SQL databases. As an exercise, I'm collecting data from every episode of my favorite Competition Cooking Show.

Per episode, we have:
-Four judges
-Four contestants
-Three rounds involving challenges
-One Winner
-Cash Winnings

In this show, people who are judges often return as contestants and vice versa. I'm trying to find an efficient and scalable way to do this that would allow me to later add other connected shows, but the more I try to plan how this would work, the less confident I'm feeling.

Initial idea is to have one People table that holds everyone who appears on the show with an ID, then a Judges table and a Contestants table that reference the person table and create unique ids for when that person is a judge vs a contestant. The winner then references just the person ID. The episodes table then brings it all together.

Am I understanding junction tables correctly? Is there a better way to do this?

I'm pretty new to anything more complex than a mid-size excel sheet, so any guidance would be much appreciated!

3 Upvotes

7 comments sorted by

View all comments

Show parent comment

1

u/Federal_Albatross208 Apr 16 '26

Great point!
The trouble is that I'm manually collecting the data, as there aren't any complete and consistent datasets for the show, and I want to make context notes for possible future uses. Sorry to leave out important context!
On the point of name-changes, etc, that's part of why the people table with the IDs seemed like a clean option to me - all I have to do in that event is go in and change the name, and the ID stays the same and unaffected.

1

u/Wise-Jury-4037 :orly: Apr 16 '26

Sure, if that fits your purpose and you dont care what the actual name was at the time of the event/show. IMO, it's the "next" stage of your data flow after you got the original values.