Skip to content

Instantly share code, notes, and snippets.

@glauco
Last active September 29, 2015 20:43
Show Gist options
  • Save glauco/509797c3dfa81f8de635 to your computer and use it in GitHub Desktop.
Save glauco/509797c3dfa81f8de635 to your computer and use it in GitHub Desktop.
SELECT t.test_id, t.run_count, t.success, t.failure, t.run_time
FROM tests t
JOIN test_runs tr
ON t.id = tr.test_id
JOIN run_metadata rm
ON rm.run_id = tr.run_id
AND rm.key = 'build_name'
AND rm.value = 'gate-tempest-dsvm-postgres-full'
GROUP BY t.test_id, t.run_count, t.success, t.failure, t.run_time
WHERE tr.start_time >= DATE('2015-09-01 01:00:00')
AND tr.stop_time <= DATE('2015-09-01 02:00:00')
GROUP BY t.test_id, t.run_count, t.success, t.failure, t.run_time
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment