Faults in the Sensor Log

Faults in the Sensor Log

The recorder wrote free text into note, but fault codes share one shape: the letter E plus digits after code=. Output reading_id, station and note for readings whose note carries such a fault code — matched with a regular expression, not a substring. Order 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_idstationnote
2Reactor-Afault code=E42; retry scheduled
3Reactor-Bfault code=E7; manual check
5Dome-Airfault code=E401; replace filter
PostgreSQLv16

Your query result will appear here

Focus radio
Paused · SomaFM · Fluid