I have a data table containing dates in two consecutive months and I need to find 2nd Maximum date from that using PL/SQL
Date |
---|
02-OCT-2021 |
30-SEP-2021 |
29-SEP-2021 |
28-SEP-2021 |
My Query is,
select MAX(status_date) from A where status_date not in (select MAX(status_date) from A)
29-SEP-2021
is query results but it should 30-SEP-2021