Write a SQL query to find the average energy consumption by region for TotalEnergies.
Use the energy consumption table and exclude records with a missing region or consumption value.
region, average_consumptionregion| Column | Type | Description |
|---|---|---|
| consumption_idPK | INT | Unique energy consumption record identifier |
| region | VARCHAR(100) | Geographic region associated with the measurement |
| consumption | DECIMAL(12,2) | Energy consumption measurement |