Skip navigation links

MySQL Forums :: Database Design & Data Modelling :: Base and Sub-types: single or multiple tables?


Advanced Search

Re: Base and Sub-types: single or multiple tables?
Posted by: Rick James ()
Date: May 26, 2011 10:26PM

(a) A single "person" table with all possible data from all sub-types, or -- No
(b) A table for "person" with the common data, and a table each for "customer" and "salesperson" each with the specific data. -- Yes

(a) will get messier and messier as time goes on.

For (b), you will have to master JOINs, but once you understand them, it will be easy.

Options: ReplyQuote


Subject Written By Posted
Base and Sub-types: single or multiple tables? Matt Houser 05/26/2011 08:56AM
Re: Base and Sub-types: single or multiple tables? Peter Brawley 05/26/2011 11:52AM
Re: Base and Sub-types: single or multiple tables? Matt Houser 05/26/2011 12:54PM
Re: Base and Sub-types: single or multiple tables? Rick James 05/26/2011 10:26PM


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.