runtime
13 / 88

task Date filtering · easy

Signups in the last 30 days

Return the name and signup_date of shoppers who signed up in the 30 days ending on 2025-03-31.

what to return

Columns
namesignup_date in this order
Rows
5 rows · any order
Watch for
The 30 days are 2025-03-02 through 2025-03-31, both included.
Skill
Turn a rolling period into exact date boundaries. Refresher: Date boundaries & monthly buckets →

expected result

Your query should return exactly these columns and values. Run it and compare.

expected result5 rows · any order
namesignup_date
Lena Fischer2025-03-10
Mo Haddad2025-03-15
Nia Brooks2025-03-21

first 3 of 5 rows

data you can query

Sample rows from each table. Each column shows its type underneath; → marks a link to another table.

shoppers5 columns · 17 rows
idinteger · keynametextemailtextregiontextsignup_datetext
1Ana Ruizana@harbor.testWest2025-01-03
2Ben Okaforben@harbor.testEast2025-01-05
3Chloe Parkchloe@harbor.testWest2025-01-09
4Dmitri Volkovdmitri@harbor.testNorth2025-01-14
5Esi MensahNULLSouth2025-01-20

showing 5 of 17 rows

solution.sql
 

Hints and the answer are always available. Using them counts the question as solved with help.