Weekly Oracle DevRel Aggregated Details by Tag

1

Please login or register to vote for this query.

(click on this box to dismiss)

Bicycles Meta

Q&A about the site for people who build and repair bicycles, people who train cycling, or commute on bicycles

SELECT
  YEAR(q.CreationDate) AS [YEAR],
  DATEPART(wk, q.CreationDate) AS [WEEK],
  t.TagName AS [tagname],
  COUNT(q.Id) AS [NUMQUESTIONS],
  SUM(q.ViewCount) AS [NUMVIEWS], SUM(q.AnswerCount) AS [NUMANSWERS],  SUM(q.CommentCount) AS [NUMCOMMENTS]
  -- MEDIAN(q.Score,
FROM Posts q
INNER JOIN PostTags pt ON q.Id = pt.PostId
INNER JOIN Tags t ON pt.TagId = t.Id
WHERE (q.PostTypeId=1)
---only questions (although answers do not have tags, so this is not necessary)
--  AND (t.TagName in ('oracle','oracle-cloud-infrastructure')) 
  AND (t.TagName in ('oracle','oracle12c','oracle18c','oracle19c','oracle21c','cx-oracle','node-oracle',
'node-oracledb','oracleclient','oracle-client','oracle-cloud-infrastructure','oracle-java-cloud-service','oraclejdk',
'oraclelinux','oracle-ords','oracle-rest-data-services','oracle-service-cloud','oracle-soa','oracle-soda',
'oracle-spatial','oracle-sqldeveloper','oracle-vault','oraclevm','oracle-wallet','roracle')) 
  and q.CreationDate < '2022-02-13'
  and q.CreationDate >= '2022-01-23'
-- GROUP BY t.TagName;
GROUP BY YEAR(q.CreationDate), DATEPART(wk, q.CreationDate), t.TagName
ORDER BY YEAR(q.CreationDate), DATEPART(wk, q.CreationDate), t.TagName ASC;

Enter Parameters

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