I have an email table with 3 columns
CampaignID
emailaddress
typeresponse
the typeresponse has 5 possible types (open, bounce, deferred, click, unsubscribe)
I need a select that groups by CampaignID and emailaddress
And then place a 1 or 0 in the 5 pivoted columns if that record exists
As in
CampaignID emailaddress open bounce deferred click unsubscribe
12345 test@live.com 1 0 0 1 0