SQL语句每个类别选一个字段???假如table tt里有三个字段,一个类别名:class,一个:message,一个:ID,怎么写SQL语句在每个类别class里只选出一个字段:message???[解决办法]假设以ID为最大为标准:select a.message from tt where id=(select top 1 id from tt where class=a.class)