What is a fact table?
Explain what a fact table represents, including its grain, measures, and typical relationships to dimensions. Use the provided table to demonstrate the concept with a concise SQL result.
event_dateevent_date, total_distance_km, and total_intervention_countevent_date ascending| Column | Type | Description |
|---|---|---|
| fact_event_idPK | INT | Unique identifier for the recorded fact row |
| event_date | DATE | Date associated with the recorded event |
| vehicle_id | VARCHAR(20) | Identifier for the vehicle associated with the event |
| distance_km | DECIMAL(10,2) | Measured distance for the event in kilometers |
| intervention_count | INT | Number of recorded interventions for the event |