Who was subscribed on a given day

SQLHard15 min

Your task

Return the accounts with an active subscription on 2026-01-15: started on or before that date, and not cancelled before it. Give name, alphabetically.

Tables

account
idINTEGERnameTEXTtierTEXT
1Northwindteam
2Acmesolo
3Globexteam
4Initechsolo
5Umbrellasolo
6Hooliteam
More rows not shown
subscription
idINTEGERaccount_idINTEGERstarted_onTEXTcancelled_onTEXTmrr_centsINTEGER
112025-06-01NULL49000
222025-08-152026-01-319000
332025-09-01NULL49000
442026-01-052026-02-209000
522026-02-01NULL19000
652026-01-16NULL9000
More rows not shown