时间:2021-07-01 10:21:17 帮助过:3人阅读
select * from bdcdj.lqentry1 a where 顺序号 in (select max(顺序号) from bdcdj.lqentry1 b WHERE b.archival_code IS NOT NULL group by archival_code);
通过archival_code分组 ,取顺序号的最大值。
oracle通过一个字段分组,取另一个字段的最大值
标签:sel bdc oracle nbsp code where arch 字段 entry