MySQL Forums
Forum List  »  Newbie

Re: sakila database design question
Posted by: Barry Galbraith
Date: September 29, 2015 08:34PM

My take would be that there is usually a 1:1 relationship between customer and street address, so those bits of info go in one table, but 1:M between customer and city, so city gets it own table, with a key from the customer table. Then, if the zip code for a city changes, you only need to update 1 row in the city table, not the row of every customer in that city.

Good luck,
Barry.

Options: ReplyQuote


Subject
Written By
Posted
September 29, 2015 07:49AM
Re: sakila database design question
September 29, 2015 08:34PM


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.