DQLs are really confusing when it comes to repeating attributes
I have a requirement to fetch folder path of a document from its object_id. For the purpose I wrote the following query:-
SELECT r_folder_path FROM dm_folder WHERE r_object_id IN (SELECT i_folder_id FROM dm_document WHERE r_object_id='090000c8801d7661')
As a result i get a couple of result rows i.e.
Empty[]
[\ParentFol\AnotherFol]
Definitely \ParentFol\AnotherFol is the correct folder path of the document. First of all i would like to know that why am i getting an emty value as well?
More importantly if I want to filter the empty result set I wrote down the following query:-
SELECT r_folder_path FROM dm_folder WHERE r_object_id IN (SELECT i_folder_id FROM dm_document WHERE r_object_id='090000c8801d7661') AND r_folder_path <> ''
But when i run this query I keep getting the following error:-
[DM_QUERY_E_REPEATING_USED]error: "You have specified a repeating attribute (r_
folder_path) where it is not allowed."
Is there a workaround to this? Any suggestions to get over the repeating attrbs dilemma ?