Problem 1251 · Easy

Average Selling Price

SQL walkthrough: each sale is priced by the one date range that contains it, then the weighted average is total revenue divided by total units, rounded to two decimals.

Open the interactive visualisation