/* Q1: How many unique posts recorded in year of 2022? A...

0

Please login or register to vote for this query.

(click on this box to dismiss)

Drones and Model Aircraft Meta

Q&A for experienced flyers, pilots, and builders of drones and model aircraft

/*

Q1: How many unique posts recorded in year of 2022? And please sort the counts by Post Type.

Q2: Which users had the most  views, by top 20, and what their Display Names are?

Q3: Please list out the top 3 Users’ most viewed post, and calculate the total score for those posts.

Q4: please review the table available on the right, and raise one more question to yourself, to show what kind of info you would like to share with us.

*/

select top 20 p.owneruserid
  , p.OwnerDisplayName
  , u.displayname
  , sum(viewcount) TotalViewCount
from posts p
join users u on p.owneruserid=u.id
group by owneruserid
, p.OwnerDisplayName
, u.displayname
order by TotalViewCount desc;

Enter Parameters

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