SMS query

0

Please login or register to vote for this query.

(click on this box to dismiss)

Ask Ubuntu Meta

Q&A about the site for Ubuntu users and developers

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')
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