So you want something like this?
select number, to_char(sysdate, 'Mon-YYYY') as month_year,
max(reading) keep (dense_rank first order by modified_date_time desc) as reading
from t
group by number;
The most recent reading for each number along with the current date formatted as Mon-YYYY.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.