Anyone?

El domingo, 8 de febrero de 2015, 17:42:06 (UTC+1), Krasimir Cholakov 
escribió:
>
> Hello, 
>
> supposing there is a graph like this one:
>
> Post (id = #14:30)
> |
> |----comment-----> Comment (version = 1)
> |----comment-----> Comment (version = 2)
> |----comment-----> Comment (version = 3)
>
> What will be the query to select only the Comment with the latest version 
> for Post with id #14:30?
>
> I need something like: 
>
> select * from (
>   select expand(out[relation='comment'].in) from #14:30
> )
> where version = ? ( is the latest i.e. 3 in this case )
>
> Thank you in advance.
>
>
>

-- 

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