1

我只需要最新日期的行:

wip_entity_id  Date_Received
1234           26/04/2013
1234           22/03/2008
1234           22/01/2009
1234           22/01/2009
1234           22/02/2006
4

2 回答 2

4

您需要在上述场景中使用子选择查询:

SELECT *
  FROM (SELECT * FROM your_table_name
             ORDER BY Date_Received DESC )
WHERE ROWNUM = 1;
于 2013-04-30T04:05:03.630 回答
1
 select * from tbl where Date_Received = (select max(Date_Received) from tbl);
于 2013-04-30T09:39:24.073 回答