Grouped fastest result list usefully
authorgsmith <gsmith@grace.example.com>
Thu, 18 Mar 2010 23:55:15 +0000 (19:55 -0400)
committergsmith <gsmith@grace.example.com>
Thu, 18 Mar 2010 23:55:15 +0000 (19:55 -0400)
fastest.sql

index ddda64025aff99b3ac9f3e47fa3bcac32ab7042b..ce333bebe64c880efb21cae97f41ce0ba9dbfe00 100644 (file)
@@ -1,5 +1,12 @@
 SELECT
   set,script,scale,clients,workers,
-  round(tps) as tps
-FROM tests
+  round(tps) AS tps
+FROM
+(
+  SELECT
+    set,script,scale,clients,workers,
+    max(tps) AS tps
+  FROM tests
+  GROUP BY set,script,scale,clients,workers
+) AS grouped
 ORDER BY tps DESC LIMIT 20;