Sorry if this is too basic :(

I have this schema:

(*Document*) 1-- *HaveWord* (weight:) -->N (*Word*)

(one document can have multiple words, every word has a weight in this 
document)

What is the correct SQL to get the *first 10 heaviest word for each 
document*?

The best I could get was something like:

*select doc_name, out(HaveWord).word from Document*

That returns the doc_name and a list of unsorted words :p



-- 

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