Hi @Dano , welcome to Microsoft Q&A forum.
To handle this situation, we need to come up with multiple normalized tables. Few of them could of Master table and others will be transaction table. Please refer to below tables with description:
TBLHomeType - This is master table which will have information about different home types like mobile home, travel trailers etc.
TBLHomes - This is master table which will have relation with home type with mobile home numbers.
TBLHomeRoom - This table contains the data about which home has how many rooms and what is the name of those rooms.
TBLResidentsHome - This table contains the data about which resident lives in which home and which room.
Now if we need to find which resident lives where we can use below query directly:
SELECT TRH.ResidentId,TRH.FullName,THR.HomeId,THR.RoomId FROM TBLHomeRoom THR
INNER JOIN TBLResidentsHome TRH ON THR.HomeRoomId = TRH.HomeRoomId
If we would like to know empty rooms, we can fire below query:
SELECT THR.HomeId,THR.RoomId FROM TBLHomeRoom THR
LEFT OUTER JOIN TBLResidentsHome TRH ON THR.HomeRoomId = TRH.HomeRoomId
WHERE TRH.ResidentId is NULL
Again this is provided based on the details you mentioned. If you can go through these and check if this meets your requirements or not. Or else you can mention more details and we can figure out what is the best way to cover this.
----------
If answer helps, please 'Accept Answer' as this could help other looking for similar queries.