M
mzr
Unregistered / Unconfirmed
GUEST, unregistred user!
下面这个SQL语句,在SQL Server 2000中调试通过,在ACCESS中不能通过。提示错误:该特定字段'a.kh'可以参考SQL语句中FROM列表子句中的多个表.SELECT TOP 100 PERCENT a.DY, a.PH, a.KH, a.KX, (SELECT COUNT(dz) AS Zh1 FROM View_WmResult b WHERE (a.kh = b.kh) AND (dz < 50) AND (dh <> 'fk')) AS Zh1, (SELECT COUNT(dz) AS Zh2 FROM View_WmResult b WHERE (a.kh = b.kh) AND (dz >= 50) AND (dz < 100) AND (dh <> 'fk')) AS Zh2FROM VIEW_SumWmresult AS aWHERE (a.DY='01')ORDER BY a.DY, a.PH, a.KX, a.KH