SELECT DISTINCT property1, property2, SUM(property3) FROM t GROUP BY property1;
这给
p11 p211 sum(p311, p312, ...)
p12 p221 sum(p321, p322, ...)
但我想要
p11 (p211, p212, ...) sum(p311, p312, ...)
p12 (p221, p222, ...) sum(p321, p322, ...)
或包含等效信息的东西。怎么做?