The IBM coding assessment included a PostgreSQL problem focused on joins, aggregation, rounding, and filtering grouped results. The task was to identify customers whose average CPU, memory, or disk usage exceeded a specified threshold across their site metrics.
Interview Details
SQL — Find Customers With High Average Resource Usage
Two tables were provided. The customers table contained:
id INT PRIMARY KEY
email VARCHAR(255)
id INT PRIMARY KEY
email VARCHAR(255)
The site_metrics table contained:
customer_id INT
cpu_usage DECIMAL(5,2)
memory_usage DECIMAL(5,2)
disk_usage DECIMAL(5,2)
customer_id INT
cpu_usage DECIMAL(5,2)
memory_usage DECIMAL(5,2)
disk_usage DECIMAL(5,2)
The task was to write a PostgreSQL query that
Unlock Full Details
Create a free account to unlock this interview experience report.