Can anyone tell me whats wrong with the line with: FOR stateID in (36,11)?:
SELECT * FROM
(
SELECT
peopleid,
stateID
FROM
GCDF_DB..People p
INNER JOIN
GCDF_DB..PeopleContactInfo l
ON p.peopleid = l.peopleid
) t
PIVOT(
COUNT(peopleid)
FOR stateID IN (36,11)
) piv