MySQL Forums
Forum List  »  Newbie

Re: school exercise I am suck on
Posted by: Rick James
Date: August 10, 2010 12:12AM

Another way to approach it...
* List the "entities" in your situation: Movie; SessionTime; Cinema; ...
* List the "relationships" between entities: movie (is playing in) cinema; ...
* Each of the entities has some "attributes": capacity of a cinema; ...

Now you are inches (centimeters, if you prefer) away from creating the tables:
* Each Entity is a table; the corresponding attributes are columns in that table. Also have an "id" for each Entity table. Name the tables appropriately: Movies, Cinemas, ...
* Each Relationship is a table with (usually) two main columns -- the ids of the Entities that are related.

Options: ReplyQuote


Subject
Written By
Posted
August 08, 2010 05:04PM
Re: school exercise I am suck on
August 10, 2010 12:12AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.