小问题。内详好吧...一个表如下CID AID1 22 23 24 35 36 4那么,我怎么写T-SQL 以AID为分组条件把每个组CID的最小值查询出来[解决办法]
select aid,min(cid) as cid from tb group by aid