📅  最后修改于: 2022-03-11 15:05:10.529000             🧑  作者: Mango
SELECT CompanyName,
ProductCount = (SELECT COUNT(P.id)
FROM [Product] P
WHERE P.SupplierId = S.Id)
FROM Supplier S