答案 0 :(得分:0)
您可能想尝试这样的事情(未经测试):
SET @i := 0;
SELECT SUM(`Sold`), SUM(`SoldAvg`)
FROM (
SELECT
@i:=@i+1 as `counter`,
FLOOR(@i/24) AS `group`,
`Record#`,
`Sold`,
`SoldAvg`
FROM your_table
ORDER BY `Record#`
) GROUP BY `group`;