T
tt123tt
Unregistered / Unconfirmed
GUEST, unregistred user!
下面这个是到行正常的:
SELECT company AS Expr4, SUM(heft) AS Expr2, AVG(price) AS Expr1, SUM(tot) AS Expr3,
sort
FROM dbo.xh_waste
GROUP BY company, sort
我把它改成这样就不行了:
SELECT company AS Expr4, SUM(heft) AS Expr2, AVG(price) AS Expr1, SUM(tot) AS Expr3,
sort
FROM dbo.xh_waste
GROUP BY company (不想用 sort分类但要列出SORT)
怎样才可以不用SORT分类但要列出SORT?
SELECT company AS Expr4, SUM(heft) AS Expr2, AVG(price) AS Expr1, SUM(tot) AS Expr3,
sort
FROM dbo.xh_waste
GROUP BY company, sort
我把它改成这样就不行了:
SELECT company AS Expr4, SUM(heft) AS Expr2, AVG(price) AS Expr1, SUM(tot) AS Expr3,
sort
FROM dbo.xh_waste
GROUP BY company (不想用 sort分类但要列出SORT)
怎样才可以不用SORT分类但要列出SORT?