Hi all, 

I am trying to chain queries together and I guess there is something that I 
do not understand.   Here is a simple query I am trying to chain together 
and it does not work

select $result let $a= (select from documents where @rid in (select 
in().@rid from [#114:16384]) and date_year.@rid in [#86:2]), $result = 
(select from $a)

Query $a actually returns results from documents, so my expectation is that 
the result query should return besically the same result as the $a query.

But yet i get nothing.

Is there something special that needs to be known about chaining queryies? 
  How do we properly create a data set to pass to the other query.


The query I want to write is the following..

select $result let $a = ({select all documents containing the where 
clauses}), $b = ({}return all the filenames and the count of documents they 
are in based on the result of $a), $b = ({Return all filetypes and the 
count of documents based on the result of $a}), $result = union($a,$b)

Any help with chained queries would be appreciated.  I think this is a very 
strong asset, but cannot get it to work.

Thanks

-- 

--- 
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/groups/opt_out.

Reply via email to