Catalin Vladu
Catalin Vladu

Reputation: 389

Extract in, out in OrientDB query

I have a query in OrientDB as:

select in, out from E_Employe

I need to put instead of "in" some attributes from "User" (for example "username", "email"), and instead of "out", some attributes from "Company" (for example, "name", "address"), and I don't know how to do it.

Upvotes: 1

Views: 252

Answers (1)

Luigi Dell'Aquila
Luigi Dell'Aquila

Reputation: 2814

You can just use dot notation:

 select 
    in.username as name, in.email as email, 
    out.name as companyName, out.address as companyAddress 
 from E_Employe

Upvotes: 2

Related Questions