【发布时间】:2009-07-31 22:33:43
【问题描述】:
我希望返回具有最大 create_dt 的行。这工作正常,但是我想知道是否有更合适的方法来做到这一点?
select * from
table1
where job_no='101047'
and
create_dt in
(select max(create_dt) from
table1 where job_no='101047')
【问题讨论】:
-
你没有提到哪种数据库技术。
标签: sql-server tsql