SELECT
RS_Dorm.DormNo,
RS_DormWaterElec.WaterPrice,
RS_DormWaterElec.ElecPrice,
RS_Dorm.BuildingNo,
RS_DormWaterElec.ElecFee,
RS_DormMonthFee.FeeMonth,
RS_Emp.EmpNo,
RS_DormWaterElec.WaterFee
FROM
RS_Dorm,
RS_DormWaterElec,
RS_DormMonthFee,
RS_Emp
WHERE
RS_Dorm.DormSysID = RS_DormWaterElec.DormSysID And
RS_DormMonthFee.FeeMonth *= convert(varchar(7),RS_DormWaterElec.ReadMonth,121) And
RS_DormMonthFee.DormSysID *= RS_DormWaterElec.DormSysID And
RS_DormMonthFee.EmpSysID = RS_Emp.EmpSysID
ORDER BY
RS_Dorm.DormNo ASC
--你是这样写的?