How would you approach cleaning a messy dataset?
For this SQL exercise, treat a row as clean when its required fields are present, its event name is not blank, and its revenue is nonnegative. Write a query that returns only clean records and removes surrounding whitespace from event names.
event_id, player_id, event_name, event_date, and revenue_usdevent_date ascending, then event_id ascending| Column | Type | Description |
|---|---|---|
| event_idPK | INT | Unique identifier for the raw event record |
| player_id | INT | Identifier of the player associated with the event |
| event_name | VARCHAR(100) | Name of the recorded game event |
| event_date | DATE | Date on which the event occurred |
| revenue_usd | NUMERIC(10,2) | Revenue associated with the event in US dollars |