Taking the record with the max date

前端 未结 6 1997
忘了有多久
忘了有多久 2020-12-08 10:05

Let\'s assume I extract some set of data.

i.e.

SELECT A, date
FROM table

I want just the record with the max date (for each value o

6条回答
  •  北荒
    北荒 (楼主)
    2020-12-08 10:46

    SELECT mu_file, mudate
      FROM flightdata t_ext
     WHERE mudate = (SELECT MAX (mudate)
                         FROM flightdata where mudate < sysdate)
    

提交回复
热议问题