I have two tables, [Property] and [Booking]. What I need to do is select every ID in [Property], then move to [Booking] and select every booking which matches [Property].[ID]. I've been trying for hours but I just can't get it to work. This is what I have so far:
SELECT Property.[Property ID], Booking.[Visit Commencement Date]
FROM Property, Booking
WHERE Property.[Property ID] =
(SELECT DISTINCT Property.[Property ID] FROM Property);
But I can't work out how to select every row. I'm using MS Access 2007 to run the query.
SELECT Property.[Property ID], Booking.[Visit Commencement Date]
FROM Property, Booking
WHERE Property.[Property ID] =
(SELECT DISTINCT Property.[Property ID] FROM Property);
But I can't work out how to select every row. I'm using MS Access 2007 to run the query.