This advanced SQL exercise is part of the book: Advanced SQL – Practical Techniques and Use-Cases, which includes 100 day-to-day SQL challenges (and solutions), need-to-know advanced features, and key concepts.
 

An online news website uses the following table to summarize the number of reports published by each of the team members. Each row specifies the name of the team member and the number of reports he or she has published.

CREATE TABLE user_posts   
(username varchar(25),   
 num_of_posts int)  
GO 

Would you like to read more?