Skip to main content

High Volume Low Success

Easy

You are given the following tables:

post table:

post_idpost_dateuser_idinterfaceis_successful_post
integertimestampintegerstringboolean

post_user table

user_iduser_typeage
integerstringinteger

Write a SQL query to isolate users whose total number of posts is at or above the overall average (per user) but whose successful post rate is at or below the overall average (of per-user rates).

Your output should include the following columns: user_id, post_success (no. of successful posts), post_attempt (no. of posts), post_success_rate. Order by decreasing success rate.