# The daily_active_users SQL transform filters with WHERE event_ts >= NOW() - 1 day and runs from a ma

Canonical URL: <https://datadriven.io/problems/the-dailyactiveusers-sql-transform-filters-with-where-even-fe6ce7d6>

Domain: Pipeline Design · Difficulty: medium

## Problem

The daily_active_users SQL transform filters with WHERE event_ts >= NOW() - 1 day and runs from a manual cron. Reading the same logical date twice produces different results, and next month's backfill is impossible because NOW() will have advanced. Apply the section's fix: replace the wall clock with a parameter supplied by an orchestrator at bind time.

## Related

- [All practice problems](https://datadriven.io/problems)
- [Mock interview mode](https://datadriven.io/interview/the-dailyactiveusers-sql-transform-filters-with-where-even-fe6ce7d6)
- [System Design Interview Questions](https://datadriven.io/data-engineering-system-design)
- [Data Engineering Interview Prep Guide](https://datadriven.io/data-engineer-interview-prep)
- [Daily Challenge](https://datadriven.io/daily)

---

Source: DataDriven (https://datadriven.io). 100% free data engineering interview prep. Live code execution against Postgres 16, Python 3.11, and Spark sandboxes. No paywall, no premium tier, no signup gate.