SQLSQL LabPostgreSQL practice
00:0022 / 45
C03IntermediateMIN · joins

First successful deployment

For every customer with a successful deployment, return customer_id, name, and first_success_at. Sort by first_success_at, then customer_id.

Data available

Use these tables

2 tables · 1 relationship
Table 1

deployments

Customer releases, including failures and rollbacks.

  • deployment_idintegerPK
  • customer_idintegerFK
  • engineer_idintegerFK
  • versiontext
  • statustext
  • deployed_attimestamptz
Table 2

customers

Organizations using the deployed platform.

  • customer_idintegerPK
  • nametext
  • industrytext
  • regiontext
  • tiertext
  • onboarded_attimestamptz
How the tables connect
deployments.customer_id=customers.customer_id
Query editor

PostgreSQL

Run query
Result stream

Output

Run your query to inspect its result.
Contextual coach

Ask about this attempt

Run or check a query first. The coach only comments on a real error or grader mismatch.

Field notes

Hints & explanation

Try to solve it cold. Two progressive hints are available.