TO find MAX Partition of table
Posted on 2011-02-17
I would appreciate if I can get help in finding max partition of table which has date.
Ex: table name xyz partitioned by date from dec 1 to dec 30 like below
P_20101201, .....until.....P_20101230. Lets consider that only until the P_20101220 has data and other partitions starting from P_20101221 is empy. no data. So what I need here is MAX partition which has data. In the above example that would be P_20101220.
I need a sql, pl/sql blocl or proc....anything would be fine...