this seems to work for me (finds the sum of number of vertices and number 
of edges in the db):

select sum($a[0].count,$b[0].count) let $a = (select count(*) from e), $b = 
(select count(*) from v)

give it a try for your use case and let me know how it goes.


~nagu.

On Tuesday, April 28, 2015 at 3:08:25 PM UTC+5:30, Krishna Kumar wrote:
>
> HI,
>
> is it possible to apply math functions over projections?
>
> *example : *select sum((select count(*) from Regressionresults where 
> ComponentName = 'FirstPageConfig' and testResult = 'passed' ,(select 
> count(*) from Regressionresults where ComponentName = 'FirstPageConfig')) 
> from Regressionresults
>
>
> its showing some exceptions like unknown keyword "SELECT" ........if 
> possible give me some related working queries
>

-- 

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