Skip to content

Instantly share code, notes, and snippets.

@austindoeswork
Created March 11, 2019 23:15
Show Gist options
  • Save austindoeswork/c1f04aa96b2f36881a453996346a879a to your computer and use it in GitHub Desktop.
Save austindoeswork/c1f04aa96b2f36881a453996346a879a to your computer and use it in GitHub Desktop.
SELECT
tests.test_enum || ', ' || (s.time_spent_working::float / (s.duration::float / 1000.0))
from segments s
inner join calls c on c.id = s.call_id
inner join call_tests tests on tests.call_id = c.id
where c.status = 600
and (s.time_spent_working::float / (s.duration::float / 1000.0)) < 30.0 -- remove potential outliers
and tests.test_uid = 'label_swap'
order by tests.test_enum
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment