Q&A for Ubuntu users and developers
/* 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;