我的查询是:
SELECT Batch.printedquantity, Batch.guid
FROM Batch
WHERE (((Batch.[guid]) In (Select Main.guid
from Main
where (Left(main.printertimestamp,10) = [date]))));
所以这返回如下:
printedquantity guid
3 {5FCE6B9A-88B0-41F7-A52B-21E0375B0433}
10 {C73EB60D-D707-4717-B505-667C445CC294}
1 {FEC25696-6AD6-4218-B7EB-2E5593054DAB}
1 {6CCDFB48-6B1B-4712-8C08-F06DA220455C}
1 {6CCDFB48-6B1B-4712-8C08-F06DA220455C}
我正在尝试获取printedquantity
列的总数,但计数功能有问题。这可能吗?