Save 25%Black Friday: 25% off all plans — use code BLACKFRIDAY2026 at checkout. Ends Friday, Dec 4.Claim the deal

Description

Table: datacenters

+------------------+---------+
| Column Name      | Type    |
+------------------+---------+
| datacenter_id    | integer |
| name             | varchar |
| monthly_capacity | integer |
+------------------+---------+

datacenter_id is the primary key. Each row represents a datacenter and its maximum monthly server capacity.

Table: forecasted_demand

+-------------------+---------+
| Column Name       | Type    |
+-------------------+---------+
| datacenter_id     | integer |
| month             | integer |
| forecasted_demand | integer |
+-------------------+---------+

(datacenter_id, month) is the primary key. Each row represents the forecasted demand for a datacenter in a given month.

Test Cases
Input
-
Output
-
Expected
-