What’s the term describing the relationship between tables that share a common primary key?
Here’s an example:
Table 1
property(property_id, property_location, property_price, …);
Table 2
flat(property_id, flat_floor, flat_bedroom_count, …);
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
What you have looks like table inheritance. If your table structure is that all
flatrecords represent a singlepropertybut not allpropertyrecords refer to aflat, then that’s table inheritance. It’s a way of modeling something close to object-oriented relationships (in other words,flatinherits fromproperty) in a relational database.