I have two tables. One with properties and one with buildings. Each property is associated with 0 to theoretically infinite amounts of buildings. Right now i have a code like this:
Select Property.ID, Building.Number
From Properties
Left Join Buildings on Buildings.pID = Property.ID
This returns a table of all buildings with their associated property. This however means, that all properties appear as many times, as they have buildings.
What i want is a result, where each property has its buildings in the same row as it self, so it becomes a result of properties, with their buildings, and not a result of buildings, with their properties.
EDIT: I should probably specify, that this is a server i only have read access on.