Highest view rate questions in a particular tag (non-Community Wiki)


Please login or register to vote for this query.

(click on this box to dismiss)

Psychology & Neuroscience Meta

Q&A about the site for practitioners, researchers, and students in cognitive science, psychology, neuroscience, and psychiatry

-- Highest view rate questions in a particular tag (non-Community Wiki).
-- Highest hitrate non-CW questions, (presumably) what questions are
-- viewed the most per time unit from Google searches.

      p.Id as [Post Link],
      p.Id as [Post ID],
      Score as [Votes],
      ViewCount as [Views],
      DATEDIFF(day, p.CreationDate, CURRENT_TIMESTAMP) as Age,
      p.ViewCount / (DATEDIFF(day, p.CreationDate, CURRENT_TIMESTAMP) + 1) as [View rate],
      p.Tags as [Tags]

FROM  Posts p

-- Note: The tags in the .Tags field are enclosed in angle 
--       brackets: Example: 
--         <.net><.net-core><class-library><.net-standard>

-- User input (associating the identifier with the actual user prompt):
--   SingleTag: Only results with tag (only one tag allowed)

WHERE p.ViewCount > 28000 AND  -- On Stack Overflow there are 100 non-CW post with more than about 28000.
      p.CommunityOwnedDate is null AND  -- Field CommunityOwnedDate is absent for non-CW posts.
      p.ViewCount / (DATEDIFF(day, p.CreationDate, CURRENT_TIMESTAMP) + 1) > 5 AND
      -- p.Tags LIKE '%<.net-core>%'  -- '%<java>%' also matches "'javascript'" (after "p.Tags" ): 'LIKE %java%'. Does not work for exact match: "COLLATE SQL_Latin1_General_CP1_CS_AS"
      p.Tags LIKE '%<' + ##SingleTag:string## + '>%'  
      -- ViewCount / age >

Enter Parameters

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