原文:T-SQL Syntax error: Column dbo.Policy.CompanyId is invalid in the select list
Could someone help me figure out what s wrong with the following T-SQL syntax? SELECT p.CompanyId, COUNT(*) as PolicyCount, c.CompanyId, c.CompanyName FROM dbo.Policy p INNER JOIN dbo....