Suppose I have the following table house:
House:
id
name
cityID
Where cityID refers to the id field of table city
City:
id
name
stateID
where stateID refers to the id field of table state
State:
id
name
countryID
where countryID refers to the id field of the table country:
Country:
id
name
How do I do mysql join statements so that I can obtain houses within a specific country using this multiple level location reference hierarchy?