我有一个看起来像的表(A):
ID Date
1 2012/01/12
2 2012/01/01
3 2012/01/03
4 2012/03/12
如果我想获取MIN
此查询的日期,我会group by
吗?
select
a.ID,
MIN(a.DATE),
b.name,
c.price
FROM
tablea a inner join tableb b on a.ID = b.ID
inner join tablec c b.ID = c.ID