WITH lastset AS (
SELECT max(set) as lastset from tests
)


SELECT
  set,script,scale,test,clients,workers,
  rate_limit AS limit,
  client_limit AS client_limit,
  round(tps) AS tps,
  round(1000*avg_latency)/1000 AS avg_latency,
  round(1000*percentile_90_latency)/1000 AS "90%<",
  1000*round(max_latency)/1000 AS max_latency,
  trans
FROM tests
WHERE set = (SELECT lastset FROM lastset)
ORDER BY set,script,scale,test,clients,rate_limit; 

WITH lastset AS (
  SELECT max(set) as lastset from tests
)
SELECT
  set,script,scale,test,clients,multi,
  rate_limit AS limit,
  client_limit AS client_limit,
  round(tps) AS tps,
  round(1000*avg_latency)/1000 AS avg_latency,
  round(1000*percentile_90_latency)/1000 AS "90%<",
  1000*round(max_latency)/1000 AS max_latency,
  trans
FROM tests
WHERE set = (SELECT lastset FROM lastset)
ORDER BY set,script,scale,clients,rate_limit,multi,test; 

Add multi in place of workers in latest set report.
Add multi in place of workers in latest set report.
