我有以下查询:
SELECT dbo.Enquiries.EnquiryID, COUNT_BIG(dbo.Enquiries.EnquiryID) AS AttachedLines
FROM dbo.Enquiries INNER JOIN
dbo.QuoteLines ON dbo.Enquiries.EnquiryID = dbo.QuoteLines.EnquiryID
GROUP BY dbo.Enquiries.EnquiryID
我的一些查询QuoteLines
附加了 0,但在我看来,它们返回为 1?