合并表行
答
基本上可以使用GROUP BY和聚合函数。像下面的东西
SELECT ID, somecol, max(another_column), min(yet_another_column)
FROM yourtable
GROUP BY ID, somecol
请参考图像的输出参考。 –