I have a table called workshops, and another table called workshop_parts.
Each row in workshop_parts holds a parent ID which references its parent workshop, along with various other data for that part.
I am trying to figure out the most efficient way to retrieve and display all my data on a website.
I want to list the workshop information and then all of its parts below.
With what I know right now I would just loop through all the workshops and then have a nested loop that loops through all the parts.
Is there some way I might use a join to get all the data in one fell swoop, or is the nested loop the best solution?