Messaging pop by country

0

Please login or register to vote for this query.

(click on this box to dismiss)

Genealogy and Family History Meta

Q&A about the site for expert genealogists and people interested in genealogy or family history

SELECT 
    CAST(DATEFROMPARTS(YEAR(p.CreationDate), MONTH(p.CreationDate), 1) AS DATE) AS [Month],
    t.TagName,
    COUNT(*) AS [Count]
FROM 
    Posts p
JOIN 
    PostTags pt ON pt.PostId = p.Id
JOIN 
    Tags t ON t.Id = pt.TagId
WHERE 
    t.TagName IN ('sms', 'messaging', 'whatsapp', 'viber', 'telegram', 'usa', 'india', 'california', 'new-york')
GROUP BY 
    t.TagName, 
    CAST(DATEFROMPARTS(YEAR(p.CreationDate), MONTH(p.CreationDate), 1) AS DATE)
ORDER BY 
    [Month] ASC, 
    t.TagName ASC;

Enter Parameters

Options:
Switch to main site
loading Hold tight while we fetch your results