New questions

0

Please login or register to vote for this query.

(click on this box to dismiss)

Signal Processing Meta

Q&A about the site for practitioners of the art and science of signal, image and video processing

SELECT
  a.Month AS 'Created',
  a.Count AS 'AllSO',
  r.Count AS 'Redis',
  s.Count AS 'Spring',
  b.Count AS 'Both'
FROM
  (SELECT
    DATEADD(MONTH, DATEDIFF(MONTH, 0, CreationDate), 0) AS Month, 
    COUNT(*) AS Count
  FROM Posts
  GROUP BY DATEADD(MONTH, DATEDIFF(MONTH, 0, CreationDate), 0))
  AS a LEFT OUTER JOIN
  (SELECT
    DATEADD(MONTH, DATEDIFF(MONTH, 0, CreationDate), 0) AS Month, 
    COUNT(*) AS Count
  FROM Posts
  WHERE
    Tags LIKE '%<spring%' AND
    Tags LIKE '%<redis%'
  GROUP BY DATEADD(MONTH, DATEDIFF(MONTH, 0, CreationDate), 0))
  AS b ON a.Month=b.Month LEFT OUTER JOIN
  (SELECT
    DATEADD(MONTH, DATEDIFF(MONTH, 0, CreationDate), 0) AS Month, 
    COUNT(*) AS Count
  FROM Posts
  WHERE
    Tags LIKE '%<redis%'
  GROUP BY DATEADD(MONTH, DATEDIFF(MONTH, 0, CreationDate), 0))
  AS r ON a.Month=r.Month LEFT OUTER JOIN
  (SELECT
    DATEADD(MONTH, DATEDIFF(MONTH, 0, CreationDate), 0) AS Month, 
    COUNT(*) AS Count
  FROM Posts
  WHERE
    Tags LIKE '%<spring%'
  GROUP BY DATEADD(MONTH, DATEDIFF(MONTH, 0, CreationDate), 0))
  AS s ON a.Month=s.Month
 ORDER BY a.Month

Enter Parameters

Options:
Switch sites:
loading Hold tight while we fetch your results