王 王淳霞 Unregistered / Unconfirmed GUEST, unregistred user! 1999-04-19 #3 能否说得更详细些 试用如下SQL语句: select x.EmployeeID, avg(x.salary) from employee.x group by x.EmployeeID order by x.EmployeeID 如果Employee已index,则order by一句可省略
能否说得更详细些 试用如下SQL语句: select x.EmployeeID, avg(x.salary) from employee.x group by x.EmployeeID order by x.EmployeeID 如果Employee已index,则order by一句可省略
王 王淳霞 Unregistered / Unconfirmed GUEST, unregistred user! 1999-04-19 #4 Sorry, 例中的EmployeeID换作DepartID更恰当一些!
B bluebird Unregistered / Unconfirmed GUEST, unregistred user! 1999-04-19 #5 select avg(x.y) MyAVG from table where ...
李 李璋琦 Unregistered / Unconfirmed GUEST, unregistred user! 1999-04-19 #6 你是否用了group by? delphi对group by的使用有限制,