Grazie mille funziona. Ho trovato un "bug" (non so se lo sia) nel database
che sto usando, ovvero c'è una sorta di arco fantasma. Mi spiego meglio,
quando stampo tutti gli archi del database, questo arco non compare nella
lista ma sia negli archi in di un certo articolo sia nel conteggio nelle
query esso compare e se clicco su di esso mi compare la finestra Page not
found. P.s nel graph editor non compare
Il giorno lunedì 18 aprile 2016 14:41:30 UTC+2, SavioL ha scritto:
>
> L'alias "numerocitazioni" non puoi usarlo direttamente, ma riesci a usarlo
> nella query esterna a quello in cui l'hai creato.
> Poi nel where devi usare 'in' e non >= perchè il risultato del max credo
> sia visto come una lista.
> Giusto per correttezza il nome dell'arco "cites" è piu corretto metterlo
> dentro "in()" e non nel size.
>
> The alias "times cited" can not use it directly, but you can use it in the
> outer query to the one in which you created it.
> Then in where you have to use 'in' and not> = max because the result I
> think is seen as a list.
> Just to correct the arc name "cites" it is more correct to put it in
> "in()" and not in size.
>
> Questa dovrebbe funzionare come query:
>
> select from (Select nome, in("cites").size() as numerocitazioni from
> Articolo) where numerocitazioni in (SELECT max(in("cites").size()) FROM
> Articolo)
>
>
>
>
--
---
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.