I have a huge table with data and i need to partition the table based on the the below requirement.
The records will be inserted every half an hour for each id.we have around 5000 id's.
I have a id(datatype as number) and row_crt_dtm(datatype as date) columns and i always want to have the latest record .
for example,if i have id's 1,2 and for id 1 the latest date is this month and for id 2 the latest date is last month ,then i should have these records in one partition
I tried to create a virtual column partition by having the rank function but got the below error
ora-30483-window-functions-are-not-allowed-here
how can i partition the table to have the latest records in one partition.
I am using oracle 11g.
Thanks