Readings Through the Garbage
Readings Through the Garbage
The station recorder wrote sensor readings as strings: honest numbers sit next to n/a, dashes and commas used for decimal points. All of those count as garbage — do not repair the comma. 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.
Any row order
Expected output columns:
reading_idstationpowerShowing the first 3 rows of the sample — the full sample comes with Premium
Sign in to see submission history
Sign inSign in to use AI Mentor
Sign inFocus radio
Paused · SomaFM · Fluid