Tell me why you want this Data Analyst role at The Home Depot, and walk me through a couple of basic SQL questions.
Use the tables below to answer the SQL portion.
Output
- Return one row per department.
- Columns:
department_name, active_associate_count, open_order_count, open_order_rate.
- Include only departments with at least one active associate.
- Sort by
open_order_rate descending, then department_name ascending.
Output details
- Treat associates with
is_active equal to TRUE as active.
- Treat orders with
order_status equal to open as open.
- Count distinct associates and distinct orders using their respective IDs.
- Round
open_order_rate to two decimal places, preserving trailing zeros.