SELECT Flr.FloorName,Cll.CellName,Rm.DoorNo,Rm.ArchArea,Rm.SetInArea,Rm.AppArea,AC.AppCoeff,Rm.UsePurpose 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 WHERE(Ent.IsPubUse=0) AND (Ent.IsMainEnt=1) AND Rm.BuildingID=[BUILDID] ORDER BY Bld.BldNO,Flr.FloorNO,Cll.CellName,Rm.DoorNO
全部评论