| title | duration |
|---|---|
| programme a | 1000 |
| programme b | 1500 |
I have a table like this, and I want to count all rows where the duration is at least 90% of the MAXIMUM duration of the programme in said row. How can I do this?
For context, each row is a play event, and duration is how long in seconds the play event lasted