Nested Repeat Region - Nested SQL Query Loop
I need advice on how to best setup the following scenario for a real estate website.
I have two database tables of data "Properties" and "Open Houses".
Properties loop in a repeat region showing 1 property per table row (very simple).
Open Houses are assigned to properties via a "property foreign key" column named "propertyFK". So there may be more than 1 open house per property, and these would sit in a nested table with a repeating row for each open house for that individual property.
What is the easiest way to accomplish this?
Properties TBL
id_property
address
price
propDetails
OpenHouse TBL
id_openHouse
propertyFK (foreign key to id_property in Property TBL)
openHouseDate
openHouseTime