well, I came up with this

select *, sum(out('CollectorPurchase').amount) as total from Collector 
where @rid in (select @rid from Collector where 
out('CollectorPurchase').size() > 0 limit n) group by @rid

if there is a better way I'm all ears 
:) ...

-- 

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