这是表的格式:幢号、户号、单元、楼层、房号、建筑面积、套内面积、分摊面积、分摊系数、用途
这是关联的语句:SELECT b.BldNo,right('0000'+CAST ( p.RoomNo AS varchar ),4) as hh,viewBmfRoom2.CellName,f.floorname,p.DoorNo,p.ARCHAREA,p.SETINAREA,p.APPAREA,AC.AppCoeff,p.USEPURPOSe from shisbuildinf b left join Shisproperty P on p.buildingid=b.id left join shisappcoeff AC on p.AppcoeffID=AC.ID left join shisfloors f on p.floorid=f.id left join viewBmfRoom2 on P.ID = viewBmfRoom2.PROID and viewBmfRoom2.BLDID = P.buildingid where b.id =[BUILDID] order by f.ID,P.Cellno,p.DoorNo
问题:当有一户为一二层联体,二层提取面积线为一层的附属,提取时二层附属设置当前层为二层,但是导出数据结果发现,在表中楼层一栏中显示层数为1层,如何修改语句使该户导出层数为实际1-2层。
谢谢帮忙修改一下!
全部评论