S
SAC
New help with count by in a query.
I have a Bill Of Lading items Table. A BOL can have several lines and
different vendors can be on different line or the same vendor can be on
different lines.
I'm trying to write a query that will count the number of vendors on a BOL.
I have:
SELECT BOLITMS.BOLNO, Count(BOLITMS.VENDNO) As CountOfVendNo
FROM BOLITMS
GROUP BY BOLITMS.BOLNO
I'm getting > 1 when there is only a single vendor for the bolno.
Any ideas?
Thanks.
I have a Bill Of Lading items Table. A BOL can have several lines and
different vendors can be on different line or the same vendor can be on
different lines.
I'm trying to write a query that will count the number of vendors on a BOL.
I have:
SELECT BOLITMS.BOLNO, Count(BOLITMS.VENDNO) As CountOfVendNo
FROM BOLITMS
GROUP BY BOLITMS.BOLNO
I'm getting > 1 when there is only a single vendor for the bolno.
Any ideas?
Thanks.