with table as
(
select newsID, max(reTime) as maxTime
from 恢复表 group by newsID
)
select * from 新闻表
inner join table on table.newsID = 新闻表.newsID ------解决方案-------------------- SqlCommand com = new SqlCommand(Sql语句);
object time=com.ExecuteScalar();
return sTail.ToString();