1
如何最好地处理在SubSonic中构建此SQL语句?SubSonic:选择合计的所有列
SELECT ac.*
, SUM(pt.amount) AS totalPoints
FROM tbl_account AS ac
INNER JOIN tbl_pointTracking AS pt ON ac.id = pt.accountID
GROUP BY pt.accountID
ORDER BY totalPoints DESC;
我知道如何处理聚集,但不知道如何处理积累了与其他列。
感谢所有,
史蒂夫
会做!我会回去,现在就这样做。...... 对不起。 – StephenPAdams 2009-12-02 17:33:10
BAM! 54%,哟。其他人,我不能标记为答案,因为我从来没有得到答案。任何人都知道上面的答案吗? – StephenPAdams 2009-12-02 19:59:43