Reputation: 389
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
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