Get apps with the highest review count since a dynamic series of days
问题 I have two tables, apps and reviews (simplified for the sake of discussion): apps table id int reviews table id int review_date date app_id int (foreign key that points to apps) 2 questions: 1. How can I write a query / function to answer the following question?: Given a series of dates from the earliest reviews.review_date to the latest reviews.review_date (incrementing by a day), for each date, D , which apps had the most reviews if the app's earliest review was on or later than D ? I think