16. 30 Days of Distinct Artifacts
Measure the unique items sold per category over the last month.
The inventory of cosmic artifacts at Xorthax's trading post is vast. Help him determine how many distinct artifacts have been sold in the last 30 days for each category. Use a CTE to filter the data, and then apply a window function.
Explanation: