7

如何在休眠中按查询分组(例如 Select column1,column2,min(value) from Foo_Bar where value> 100 group by (Column1,Column2))?我想按部分分组多个列。

4

1 回答 1

13
select f.column1, f.column2, min(f.value)
from FooBar f
where f.value > 100
group by f.column1, f.column2
于 2012-05-17T17:51:46.470 回答