# For each deploy log entry, show svc_name, deploy_at, dur_secs, a running total of dur_secs within ea

Canonical URL: <https://datadriven.io/problems/for-each-deploy-log-entry-show-svcname-deployat-dursec-0e81ce67>

Domain: SQL · Difficulty: medium

## Problem

For each deploy log entry, show svc_name, deploy_at, dur_secs, a running total of dur_secs within each service (ordered by deploy_at), and an overall duration tier using NTILE(3) across all deploys ordered by dur_secs descending.

## Related

- [All practice problems](https://datadriven.io/problems)
- [Mock interview mode](https://datadriven.io/interview/for-each-deploy-log-entry-show-svcname-deployat-dursec-0e81ce67)
- [SQL Interview Questions](https://datadriven.io/sql-interview-questions)
- [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.