Juniper Networks uses daily telemetry from Juniper Mist and Junos devices to monitor network demand. Write a PostgreSQL query that calculates a seven-day rolling average of daily traffic and compares it with the immediately preceding seven-day period.
| Column | Type | Description |
|---|---|---|
| traffic_idPK | INT | Unique telemetry record identifier |
| traffic_date | DATE | Date of the traffic measurement |
| device_group | VARCHAR(40) | Juniper device group or product family |
| traffic_gb | NUMERIC(10,2) | Traffic volume in gigabytes |