2

我有的:

SELECT SGFORM.FFORMDESC, SGFORM.FPAPERNAME, SGFORM.FPAPERDESC
FROM SGFORM
Group by SGFORM.FPAPERNAME, SGFORM.FPAPERDESC, SGFORM.FFORMDESC
Having Count (*) > 0;

这给了我一个独特项目的列表,但不是计数。

4

1 回答 1

1
SELECT SGFORM.FFORMDESC, SGFORM.FPAPERNAME, SGFORM.FPAPERDESC, COUNT(*)
FROM SGFORM 
Group by SGFORM.FPAPERNAME, SGFORM.FPAPERDESC, SGFORM.FFORMDESC 
Having Count (*) > 0
于 2012-07-26T00:22:20.247 回答