0
我编写了以下查询以返回具有最新日期的记录。SQL服务器中的MAX聚合函数
select fs.company_id, max(fs.create_dt) as latestcreatedate
from field_sale fs
group by fs.company_id
order by fs.company_id
查询一切正常。但我需要检索记录,并附上所有相关列。如ID,标题,desc等
如何检索记录及其相应的列?这样做的