Motive's Fleet Dashboard stores periodic GPS-derived location labels for fleet vehicles. Write a PostgreSQL query that returns the most frequently observed non-null location for each truck.
truck_id ascending.| Column | Type | Description |
|---|---|---|
| truck_idPK | INT | Unique truck identifier |
| unit_number | VARCHAR(20) | Fleet unit label |
| fleet_status | VARCHAR(20) | Current fleet status |
| Column | Type | Description |
|---|---|---|
| location_idPK | INT | Unique location observation identifier |
| truck_id | INT | Truck associated with the observation |
| location_name | VARCHAR(100) | Normalized location label |
| recorded_at | TIMESTAMP | Time of the location observation |