Freshest Staging Row
Before loading, keep one current row for each src_id from stg_users. The freshest row has the greatest loaded_at; if tied, use the larger id. Return src_id and name, sorted by src_id.
Expected output sample
This is what a correct answer looks like — its row count is its own, it doesn't have to match the schema tables.
| name | src_id |
|---|---|
| Alice A. | 101 |
| Bob | 102 |
| Carol | 103 |
Sign in to see submission history
Sign inSign in to use AI Mentor
Sign in