perhaps you could try this: select distinct(@rid) from (select expand(bothv()) from related)
let me know if it works for you. regards, ~nagu. On Wednesday, June 3, 2015 at 3:59:16 PM UTC+5:30, [email protected] wrote: > > Hi Lior, > try this query > > select distinct(id) as id from (select expand( $c ) let $a = ( SELECT > outV() as id FROM Called WHERE start_time>10 AND end_time<11 ), $b = ( > SELECT inV() as id FROM Called > WHERE start_time>10 AND end_time<11 ), $c = unionAll( $a, $b )) > > Alessandro > > >> -- --- 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.
