Write a SQL query to find the second-highest value in a table without using LIMIT.
Use the measurements table and its value column. Treat duplicate values as one distinct value. If fewer than two distinct non-null values exist, the query should return NULL.
second_highest_value.NULL when no such value exists.| Column | Type | Description |
|---|---|---|
| measurement_idPK | INT | Unique measurement identifier |
| value | NUMERIC(10,2) | Measured numeric value |