How do I get these two count functions into one query?
SELECT
COUNT(MaritalStatus) as 'Married'
FROM
Person.Person PP
INNER JOIN
HumanResources.Employee HRE ON PP.BusinessEntityID = HRE.BusinessEntityID
WHERE
MaritalStatus = 'M';
SELECT
COUNT(MaritalStatus) as 'Single'
FROM
Person.Person PP
INNER JOIN
HumanResources.Employee HRE ON PP.BusinessEntityID = HRE.BusinessEntityID
WHERE
MaritalStatus = 'S';
COUNTthroughSUM.SUM(CASE WHEN a=b THEN 1 ELSE 0 END)count(*) filter (where MaritalStatus = 'S')`