View Single Post
Old 09-20-2009, 08:41 PM   #4 (permalink)
tony
The Addict
 
tony's Avatar
 
Join Date: Aug 2008
Posts: 336
Thanks: 8
tony is on a distinguished road
Default

It seems like a hierarchy structure, although season doesn't have a lot of data to put on it from the looks of it, so I will go with a 1-to-many relationship between shows > episodes and just make season a field to episodes. Something like this:

Code:
-shows
--show_id
--name
--description

-episodes
--episode_id
--show_idfk
--name
--season
--description
--more fields, etc..
the show_idfk field in the table episodes would help to make the relationship with the shows table (fk stands for foreign key).
tony is offline  
Reply With Quote
The Following User Says Thank You to tony For This Useful Post:
h0ly lag (09-21-2009)