AV       CV   
  \        /
   \dE  /eE
    \    /
      \/     
     BV


I am getting the result I am looking for with this query but still with 
duplicates.

select expand($c) let $a = (select @rid from (select 
expand(out('eE').@class='BV') from CV where property='exampleString')), $b 
= (select @rid from (select expand(out('dE')) from AV where @rid=#14:0)), 
$c = unionall($a, $b)

I tried using DISTINCT() in combinatin with UNIONALL() and EXPAND() but 
could not make it work.

Using DISTINCT here gives empty result with no error.
select expand(distinct($c)) let $a = (select @rid from (select 
expand(out('eE').@class='BV') from CV where property='exampleString')), $b 
= (select @rid from (select expand(out('dE')) from AV where @rid=#14:0)), 
$c = unionall($a, $b)


I said previously "no solution with TRAVERSE" but by now im ok with that 
too.

OrientDB 1.7.9


-- 

--- 
You received this message because you are subscribed to the Google Groups 
"OrientDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to