Hi, I think that difference is the function you need:

SELECT difference(out('talked_to'), out('odered_from'))
FROM Person
WHERE property = 5

Cheers,
   Riccardo

2015-02-25 13:01 GMT+01:00 <[email protected]>:

> Hey,
>
> I am kinda new to orientdb, struggling a little with some basic queries:
>
> I have a user -> [ talked_to ] -> user edges and also user ->
> [ordered_from] -> user edges.
> Given a certain user id, which is not the rid, but another property of
> user, i need to get all users that i talked to but did not purchase from or
> sold to...meaning that if u1 talked to u2 - will be returned, but if u1
> talked to u2 but also purchased from u2 - won't be returned in the result.
>
> How can i accomplish that ?
>
> Thanks a lot,
> Alex
>
>
>  --
>
> ---
> 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.
>

-- 

--- 
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