Create proc [dbo].[SP_ServiceProjectCount] as begin SELECT s.ServiceName + ' ( '+ CAST( COUNT(p.ProjectID) as nvarchar(255)) + ' )' as ServiceName , s.ServiceID FROM Service AS s INNER JOIN Project AS p ON s.ServiceID = p.ServiceID GROUP BY s.ServiceID, s.ServiceName order by s.ServiceName end
FROM Service AS s LEFT JOIN Project AS p
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)