Readings Through the Garbage
Readings Through the Garbage
The station recorder wrote sensor readings as strings: honest numbers sit next to n/a, empty strings and commas for decimal points. Convert raw_power to a floating-point number so garbage becomes NULL instead of crashing the query. Output reading_id, station and the result as power, ordered by reading_id.
Expected output sample
This is what a correct answer looks like — its row count is its own, it doesn't have to match the schema tables. Your answer must use the same column names as this sample — alias them with AS if needed.
| reading_id | station | power |
|---|---|---|
| 1 | Reactor-A | 12.5 |
| 2 | Reactor-A | NULL |
| 3 | Reactor-B | NULL |
Sign in to see submission history
Sign inSign in to use AI Mentor
Sign inFocus radio
Paused · SomaFM · Fluid