Hi,

A MATCH statement is what you need:

MATCH
  {as:user} -Performs-> {as:process} -Uses->
  {class:Application, as:app, where:(applicationName = ?)} -RunsOn->
{class:Server, as:server, where:(osType = ?)}
RETURN user.name, process.id, app.name, server.url, server.name
/* just add here all the info you need */

Full reference here http://orientdb.com/docs/2.2.x/SQL-Match.html

I hope it helps

Thanks

Luigi




2017-04-18 14:00 GMT+02:00 Chaitanya deep singh Jhala <
[email protected]>:

> Hi
>
> I have some doubts related to the queries in orientdb. I have below
> scenario :
>
> Example :
>
>        Performs              Uses                    RunsOn
> User     -->    Process    -->    Application     -->      Server
>
> Here , User/Process/Application/Server  are Vertex Names
>           Performs/Uses/RunsOn are Edge Names
>
> Now, I want all the related combination result as per the input.if input
> is like osType of Server and applicationName of Application then i want all
> the details related to this two inputs like user and process and whatever
> is related to this applicationName and osType.
>
> It is possible in orientdb to fetch out all this details in a single query
> ??
>
>
> Thanks & Regards
> Chaitanya
>
> --
>
> ---
> 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.
>

-- 

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