SELECT Bld.BldNO,Cll.CellName,Flr.FloorName,Rm.DoorNo,Rm.SetInArea,Rm.AppArea,AC.AppCoeff,Rm.ArchArea,Rm.UsePurpose,viewShapeHouseNanCheng.FTTDMJ,CASE WHEN 1 = 0 THEN '' ELSE '' END AS KONG,Rm.Remark FROM shisproperty Rm INNER JOIN shisEntities Ent ON Ent.OwnerID = Rm.ID LEFT OUTER JOIN shisbuildinf Bld ON Rm.BuildingID=Bld.ID LEFT OUTER JOIN shisfloors Flr ON Rm.FloorID=Flr.ID LEFT OUTER JOIN shiscells Cll ON Ent.CellID=Cll.ID LEFT OUTER JOIN shisappcoeff AC ON Rm.AppcoeffID=AC.ID LEFT JOiN viewShapeHouseNanCheng ON viewShapeHouseNanCheng.HID = Rm.ID
WHERE(Ent.IsPubUse=0) AND (Ent.IsMainEnt=1) AND Rm.BuildingID=[BUILDID] ORDER BY Bld.BldNO,Flr.FloorNO,Cll.CellName,Rm.DoorNO
全部评论