Select vocno, Count(*)
From KontenLedger
Where VOCDT = '2018-07-27'
Group By VOCNO
Having Count(*) < '3'
我的上述结果是正确的,但我想与此同时添加另一个归档的“ narr”
在我添加另一个字段“ narr”的地方,如下图所示
Select narr, vocno, Count(*)
From kontenledger
Where ........
Group By narr,vocno
Having Count(*) < '3'