I have a situation like this: I need to find out the i_chronicle_id of a document. If I try with r_object_id(i.e select i_chronicle_id from dm_document where r_object_id='some id', it will return me the i_chronicle_id. Then no problem. But if someone has modified the document(checked out and checked in) my above query doesn't work because the r_object_id has changed in that situation, which I do not know. Can anyone help me with dql in such a situation?
Note: The reason why I search for the i_chronicle_id is to get the latest r_object_id.