Hi,

In v2.2 it's definitely easy using MATCH statements (
https://github.com/orientechnologies/orientdb-docs/blob/master/SQL-Match.md)

MATCH
{class: Person, as: A, where: (name = 1)}.out(){as: B}.out(){as: C},
{as: A}.out(){as: C}.out(){as: B}
RETURN A

with a plain SQL is a bit more tricky, you have to use subqueries

Thanks

Luigi


2016-04-22 8:54 GMT+02:00 K Major <k19me...@gmail.com>:

> Hello,
> Maybe I didn"t express myself very well.
>
> I'm not looking for a way to create this structure but to rather find it
> inside a graph.
>
> Suppose you have a large graph, I want to design a query thaht find those
> nodes with this particular structure inside my graph.
>
> Thats exactly what the query in Gremlin is doing : it scans the whole
> graph and looks for nodes such that they have this structure and returns
> the nodes having this structure.
>
> I was wondering if it possible to design a query that also looks for this
> structure inside my graph but written in OSQL instead ?
>
> --
>
> ---
> 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 orient-database+unsubscr...@googlegroups.com.
> 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 orient-database+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to